We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
// Create pointer $alias = new Pointer('IBAN', $iban); $alias->setName($name); // Create draft payment entry $draftPaymentEntry = new DraftPaymentEntry( new Amount($amount, 'EUR'), $alias, "Description of draft payment" ); // Set merchant reference $draftPaymentEntry->setMerchantReference("Merch-ref-bla"); // Create a payment map. $draftPaymentMap = [ DraftPayment::FIELD_ENTRIES => [ $draftPaymentEntry ], DraftPayment::FIELD_NUMBER_OF_REQUIRED_ACCEPTS => 1 ]; // Create a new payment and retrieve it's id. $draftPaymentId = DraftPayment::create($apiContext, $draftPaymentMap, BUNQ_USER_ID, BUNQ_TICKETS_ACCOUNT);
Return of the Payment ID
HTTP Response Code: 400 Superfluous field "allow_bunqto". Superfluous field "id". Superfluous field "alias". Superfluous field "type".
The text was updated successfully, but these errors were encountered:
Ahh, @BabyDino this is due to the following:
sdk_php/src/Model/Generated/Object/DraftPaymentEntry.php
Line 9 in 39fd6bf
See #63 (comment) In a future refactor this will be picked up.
Closing this issue for now as this is not a bug, but feel free to comment.
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce:
What should happen:
Return of the Payment ID
What happens:
SDK version and environment
Response id
The text was updated successfully, but these errors were encountered: