-
Notifications
You must be signed in to change notification settings - Fork 16
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
Stripe Integration Support #1485
Comments
this should be done as a separate module |
Heres the EDL: createPaymentMethod:
email: ${email} # Email of the customer
phone: ${phone} # Phone number of the customer
city: ${city}
country: ${country}
line1: ${line1}
line2: ${line2}
postalCode: ${postalCode}
onSuccess: |-
//@code
statusText.text = 'Payment method created successfully: ' + paymentMethod.id;
onError: |-
//@code
statusText.text = 'Error creating payment method: ' + error.message;
# Action to confirm payment
confirmPayment:
clientSecret: ${clientSecret} # The client secret received from the backend
paymentMethodId: ${paymentMethodId} # ID of the payment method created
onSuccess: |-
//@code
statusText.text = 'Payment confirmed successfully: ' + paymentIntent.id;
onError: |-
//@code
statusText.text = 'Error confirming payment: ' + error.message;
# Action to handle Stripe setup
initializeStripe:
publishableKey: ${publishableKey} # Your Stripe publishable key
onSuccess: |-
//@code
statusText.text = 'Stripe initialized successfully';
onError: |-
//@code
statusText.text = 'Error initializing Stripe: ' + error.message; |
Here is a detailed paragraph explaining the methods:
|
looks good, please go ahead and implement quickly. |
@mehsaandev can you please verify if this fulfils your requirements? CC: @ridsashabbir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: