Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional parameter fix #131

Merged
merged 3 commits into from
Jul 12, 2023
Merged

Additional parameter fix #131

merged 3 commits into from
Jul 12, 2023

Conversation

ShuCh3n
Copy link
Contributor

@ShuCh3n ShuCh3n commented Jul 11, 2023

The node in the additional parameter is different between a transaction and a data request call. The transaction request accepts "AdditionalParameter" and the data request accepts "List". On default, the payload will generate the payload for the transaction request. Whenever you use a data request with an additional parameter please call the method "isDataRequest" on a Payload object. Also, there is a isDataRequest property added so you can change the property in the payment class itself.

@@ -39,6 +39,8 @@ class BuckarooWallet extends PayablePaymentMethod
*/
public function createWallet()
{
$this->isDataRequest = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not set this in a construct or something similar?

@ShuCh3n ShuCh3n merged commit 27a1068 into master Jul 12, 2023
@ShuCh3n ShuCh3n deleted the bugfix/additional-parameter-fix branch July 12, 2023 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants