Closed Flowerinno closed 3 months ago
Hi @Flowerinno ,
Thanks for reaching out about the issue you're experiencing. I've passed this along to a colleague who worked on our Node SDK, and they'll review it. You can expect a reply once they've completed their investigation.
If you intend to use more than one payment method on the hosted payment page, I believe that the combine
option may not be suitable for your needs.
You can achieve this functionality by utilizing noservice
as the method, allowing you to specify the payment methods in servicesSelectableByClient
. Additionally, it appears that the continueOnIncomplete
value was omitted from your payload. Your code should look something like this:
const payment = await this.buckaroo
.method('noservice')
.pay({
servicesSelectableByClient: ['mastercard', 'visa'],
continueOnIncomplete: true,
// ... other parameters
})
// other chained method calls
.request();
Please ensure that all necessary parameters are included for the desired outcome.
Feel free to let us know if you have any further questions.
@vildanbina Was playing with noservice
, indeed combined with continueOnIncomplete
works great. Thank you!
Payment request sample:
Here if I use .combine('visa') for example, an active payment method will be the last one used in
.combine()
chain.servicesSelectableByClient
should list selected payment methods, with primary methodmastercard
selected in.method()
.I can't find a reference in the docs and repo how to do this. Would be happy if you could assist me with this. Thanks in advance!