Closed Maks273 closed 4 months ago
Tried the approach from doc https://docs.stripe.com/terminal/features/connect?terminal-sdk-platform=ios#destination-payment-intents but it's not possible to set the values
sorry, that doc has typos 😞 we'll get that fixed up. You just need to set the params on the builder before building. Once built its a read only object. Updated snippet:
let params = try PaymentIntentParametersBuilder(amount: 1000,
currency: "gbp")
.setOnBehalfOf("connected account id")
.setTransferDataDestination("connected account id")
.setApplicationFeeAmount(200)
.build()
the docs snippet has been updated. Re-open if still running in to trouble.
I keep getting this error on Terminal.shared.collectPaymentMethod(paymentIntent). I assume it's API issue. Any suggetions please?