#Sandip
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
Can you help me? for this?
Google Pay is not supported in India
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
I'm not able to show already used card into stripe payment sheet android.
that's expected, we don't offer to show already saved cards in any of our Payment integrations
sorry I stand corrected
are you using this integration for mobile? https://stripe.com/docs/payments/accept-a-payment?platform=android&ui=payment-sheet#add-server-endpoint
Yes
Hey! Taking over for my colleague. Can you share a PaymentIntent Id ?
First think, you need to pass the customerId when creating the PaymentIntent:
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-customer
Yes of course, what is it ?
I'm able to payment succesfully using payment sheet
But after that how i will get paymentmethod.
And how i will set destination and paymentmethod
For capture-intent
You'll have the PaymentMethod Id when fetching the PaymentIntent object:
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method
What you mean here exactly by destination/capture-intent ? I'm seeing that you are trying to do manual capture:
https://stripe.com/docs/payments/place-a-hold-on-a-payment-method#capture-funds
So in your backend just capture the funds following this step ๐
destination means where i need to transfer the amount from purchaser
Are you using Stripe Connect?
We try this, But when we create fresh payment intent at that time i got payment_method=null
Can you share the PaymentIntentId of this ?
Wait i share another
The PaymentIntent you shared previously pi_3MomwaSJCAsyx4130DBGglVL has this PaymentMethod pm_1Momx9SJCAsyx413Rk08DRcP
Look :
1.] i create ephemeral key
{"id":"ephkey_1MonAVSJCAsyx41337Ujzp1u","object":"ephemeral_key","associated_objects":[{"id":"cus_LKDgQWGFscG74r","type":"customer"}],"created":1679574179,"expires":1679577779,"livemode":false,"secret":"ek_test_YWNjdF8xS1FzaXBTSkNBc3l4NDEzLEE2QTZycnlraVl2RXNtYWlwbWoybjFnVkFvSDA0WkI_00Q4XB0sHL"}
2.] Create payment intent
{"id":"pi_3MonAWSJCAsyx4130ZpdVU53","object":"payment_intent","amount":15000,"amount_capturable":0,"amount_details":{"tip":{}},"amount_received":0,"application":null,"application_fee_amount":null,"automatic_payment_methods":{"enabled":true},"canceled_at":null,"cancellation_reason":null,"capture_method":"manual","charges":{"object":"list","data":[],"has_more":false,"total_count":0,"url":"/v1/charges?payment_intent=pi_3MonAWSJCAsyx4130ZpdVU53"},"client_secret":"pi_3MonAWSJCAsyx4130ZpdVU53_secret_SF83fz2p2QCUoJzXtvQqgK8r9","confirmation_method":"automatic","created":1679574180,"currency":"inr","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_options":{"card":{"installments":null,"mandate_options":null,"network":null,"request_three_d_secure":"automatic"}},"payment_method_types":["card"],"processing":null,"receipt_email":null,"review":null,"setup_future_usage":"on_session","shipping":null,"source":null,"statement_descriptor":null,"statement_descriptor_suffix":null,"status":"requires_payment_method","transfer_data":null,"transfer_group":null}
Check this "id":"pi_3MonAWSJCAsyx4130ZpdVU53"
Now i will use the "client_secret" and pay using payment sheet.
Yes because i have complete the payment
Yes ping me when you finish the payment...
Check this "id":"pi_3MonAWSJCAsyx4130ZpdVU53"
I have complete the payment
Now Can you tell me what is the flow after this...
Now the PaymentIntent'status is requires_capture. Now you need to capture the funds using this API :
https://stripe.com/docs/api/payment_intents/capture
You need to follow this step now :
https://stripe.com/docs/payments/place-a-hold-on-a-payment-method#capture-funds
So we required to add destination(Admin stripe account id). For where we need to transfer this amount
Because in our case we have multiple admin
In that case when creating the PaymentIntent you need to specify destination accountId:
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-transfer_data-destination
You need to follow this:
https://stripe.com/docs/connect/destination-charges#create-a-charge
Ok