#DraG0NNNNNNN-ios
1 messages · Page 1 of 1 (latest)
thanks for the quick response
Error Domain=com.stripe.lib Code=50 "There was an unexpected error -- try again in a few seconds" UserInfo={com.stripe.lib:StripeErrorCodeKey=more_permissions_required, com.stripe.lib:StripeErrorTypeKey=invalid_request_error, com.stripe.lib:ErrorMessageKey=The provided key 'pst_test_YW*********************************************************************_******XlS6' does not have the required permissions for this endpoint on account 'acct_1JdAzvSH75okDOxi'. Having more permissions would allow this request to continue., NSLocalizedDescription=There was an unexpected error -- try again in a few seconds
this is the error i am getting
Parameters:-["payment_method_types[]": "card", "customer": "cus_Kzy5spGNDXDmpO", "amount": 123.0, "currency": "usd"]
We pass this in payment intent
same key is working in android though
and website as well
You get this error when trying to create a Payment Intent?
in the popup
after creating intent
when i have to add the card, this issue comes and popup gets removed again
Error Domain=com.stripe.lib Code=50 "There was an unexpected error -- try again in a few seconds" UserInfo={com.stripe.lib:ErrorMessageKey=The provided key 'pst_live_YW*********************************************************************_******BnP7' does not have the required permissions for this endpoint on account 'acct_1HdWsvDl8ZGi3BGa'. Having more permissions would allow this request to continue., com.stripe.lib:StripeErrorCodeKey=more_permissions_required, NSLocalizedDescription=There was an unexpected error -- try again in a few seconds, com.stripe.lib:StripeErrorTypeKey=invalid_request_error
this is the error from live mode also
self.paymentSheet = PaymentSheet(paymentIntentClientSecret: StripePaymentIntent, configuration: configuration)
self.paymentSheet?.present(from: self) { paymentResult in
// MARK: Handle the payment result
switch paymentResult {
case .completed:
print("Your order is confirmed")
case .canceled:
print("Canceled!")
case .failed(let error):
print("Payment failed: (error)")
}
}
error is coming from this function
there?
hmm
why are you using Terminal?
that key you use(pss_xxxx) is not an API key, it's the Terminal ConnectionToken. But you're not using Terminal(connecting to a physical reader to take a payment)right? You're just using the PaymentSheet.
pst_live - my key is
so you need to not do https://stripe.com/docs/terminal/payments/setup-sdk?terminal-sdk-platform=js#connection-token that stuff, since it's not relevant, you just use your keys from https://dashboard.stripe.com/test/apikeys
sure but that's wrong. Like I said, that's a Terminal connection token, I have no idea why you're using that.
just use your publishable key (pk_test_xxx) from https://dashboard.stripe.com/test/apikeys.
yep
that's pk_live
not pst_live
I don't know where you get that pst_live value from but you need to stop using it