-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
collectPaymentMethod() faild, Collect payment method call after retrievePaymentIntent() asynchronously error occur >> VALUE FOR PAYMENTINTENT CANNOT BE CAST FROM STRING TO ReadableNativeMap. stripe terminal using the tap to pay(Simulated mode: YES) React native app, I got an error. #675
Comments
The SDK doesn't provide a |
@nazli-stripe sorry,it is collectPaymentMethod({ paymentIntent: paymentIntent.id }) whenever i call collectPaymentMethod({ paymentIntent: paymentIntent.id }) this method after retrievePaymentIntent(clientSecret) I gating the error. |
for |
@nazli-stripe thank you so much. const processPayment = async () => { |
I am getting the same error while trying to use confirmPaymentIntent. The object returned by collectPaymentMethod() is undefined for me. Is this because I am using the test api key? |
** the error **
When I tried to collect the payment method retrievePaymentIntent(clientSecret) and then call the collectPaymentMethod({ paymentIntent: paymentIntent.id }) method but got the error >> VALUE FOR PAYMENTINTENT CANNOT BE CAST FROM STRING TO ReadableNativeMap
stripe terminal using the tap to pay(Simulated mode: YES) React native app, I got an error.
only retrievePaymentIntent(clientSecret) this function gives response, but whenever adding collectPaymentMethod({ paymentIntent: paymentIntent.id }) this function gating the error
If any other way to modify my payment function @nazli-stripe please suggest.
To Reproduce
Steps to reproduce the behavior:
const payment = async () => {
const { paymentIntent: Intent, error} = await retrievePaymentIntent(clientSecret);
if (error) {
console.log('Error >> ', error);
return;
}
console.log('Intent >> ', Intent);
//setProcessId(paymentIntent.id);
if (Intent?.id) {
const { paymentIntent:pay, err:error } = await collectPaymentMethod({ paymentIntent: paymentIntent.id });
console.log('pay >> ', pay);
}
if (err) {
console.log('err >> ', err);
return;
}
};
Expected behavior
I use the asynchronous function payment where two functions call one after another but gating this error >> VALUE FOR PAYMENTINTENT CANNOT BE CAST FROM STRING TO ReadableNativeMap
Screenshots
If applicable, add screenshots to help explain your problem.
Stripe Terminal React Native SDK version
@
^0.0.1-beta.16
)The text was updated successfully, but these errors were encountered: