#DraG0NNNNNNN-ios

1 messages · Page 1 of 1 (latest)

cinder pier
#

Hi! What is your question exactly?

simple shard
#

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

cinder pier
#

You get this error when trying to create a Payment Intent?

simple shard
#

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?

robust herald
#

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.

simple shard
#

pst_live - my key is

robust herald
robust herald
#

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

simple shard
#

let me verify

#

just a min

#

okay

#

it is from the ephemeral key

#

ephemeral secret key

#

in the docs it is said that we have to use customer ehpemeral secret key

#

thank you very much

#

this works