I have been trying to set up stripe integration within retool using the built in stripecarform1, however I am struglling to pull the payment method. Has anyone tried this before and made it?
Thank you @ScottR yes sure
The steps i have but the paymentmethod creation is not working for me.
{
"id": "pi_xxxxxxxxxxxxxxxxxxxxxxxK8",
"object": "payment_intent",
"amount": 500,
"amount_capturable": 0,
"amount_details": {
"tip": {}
},
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": {
"allow_redirects": "always",
"enabled": true
},
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic_async",
"client_secret": "pi_3xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"confirmation_method": "automatic",
"created": 1742483355,
"currency": "gbp",
"customer": null,
"description": null,
"invoice": null,
"last_payment_error": null,
"latest_charge": null,
"livemode": false,
"metadata": {},
"next_action": null,
"on_behalf_of": null,
"payment_method": null,
"payment_method_configuration_details": {
"id": "pmc_1Rxxxxxxxxxxxxxxxxx
v7N1r",
"parent": null
},
"payment_method_options": {
"card": {
"installments": null,
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic"
},
"klarna": {
"preferred_locale": null
},
"link": {
"persistent_token": null
},
"revolut_pay": {}
},
"payment_method_types": [
"card",
"klarna",
"link",
"revolut_pay"
],
"processing": null,
"receipt_email": null,
"review": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "requires_payment_method",
"transfer_data": null,
"transfer_group": null
}
Are you getting the card info from the form?
Yes I am getting card infor from the form
I am geting amount, customer name, customer id and all that but when it comes to payment method, its errors
I do not see it in the params for the payment intent API call
do you mean card number and all those info? I havent added that info in Payment_intent API I
I am trying to get this here
As it suggests in that screenshot try using the payment intent
Yes, that seems to be it.
If you can be patient I need to go back to my docs and see how I did it as it has been some time since I implemented it in a different app. Also check out this page for some example apps using Stripe....
Thank you so much for all your help with this, that will be great if you share how did you do this. I will refer to the link you have forwarded. Thank you once again.
Hi @Denish_Jani,
Did you already sort this out? It looks like the stripe card form should give you access to the card id property on submit stripeCardForm1.stripeToken.card.id
(in the format, card_1Hxxxxxx
)
Tentatively marking this a solution, but please reach out if this doesn't work