pagarme / pagarme-nodejs-sdk

Other
22 stars 13 forks source link

How create to checkout payment with pix through the SDK? #20

Open renatoastra opened 11 months ago

renatoastra commented 11 months ago

Hello, im facing some problems with my integration,

When i pass the acceptedMultiPaymentMethods field on the checkout object with the pix payment enable,

The api response its an error:

"order.payments[0].checkout.pix": [\r\n' +
2023-10-11 22:17:21     '      "The pix field is required when pix payment is accepted"\r\n' +
2023-10-11 22:17:21     '    ]\r\n' 

But im already passing the Pix field.

When I try through Insomnia without acceptedMultiPaymentMethods, the response is successfully completed,

But using the SDK the createOrder function forces me to send this field, What I should do?