#Sandip
1 messages · Page 1 of 1 (latest)
Hi,
You are using Stripe Element here right ?
I'm Using Stripe PaymentFlow
Can you share the link you are following?
You are using PaymentSheet (Elements for web) actual
You need to pass the customerId when creating the PaymentIntent and pass the customer config when initializing the PaymentSheet
I'm not able to see this added card.
Theses aren't added card, these are other Payment Methods
I have already sended that .
Request :
{"amount":"106","user_id":"63ea203bdb9ab67681284d85","destination":"acct_1KgrSTSFpAcqmc6D","setup_future_usage":"on_session","currency":"INR","customer":"cus_NLhiVPsvtgmpsr"}
Response :
{"id":"pi_3Mt7sJSJCAsyx4130SVW4V2T","object":"payment_intent","amount":106,"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_3Mt7sJSJCAsyx4130SVW4V2T"},"client_secret":"pi_3Mt7sJSJCAsyx4130SVW4V2T_secret_j8vGEGn5AsAWNzDakaflzUqRY","confirmation_method":"automatic","created":1680607087,"currency":"inr","customer":"cus_NLhiVPsvtgmpsr","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":{"destination":"acct_1KgrSTSFpAcqmc6D"},"transfer_group":null}
Can you tell me what I'm missing in this create payment intent API?
I have also intialize the customer using ephemeralKeySecret & customer ID.
Let me check...
Ok
still doing some tests...
I think you should remove setup_future_usage .
Ok let me try..
I have try with the same
But still i can't able to see already added card.
I'll try to find you a sample app...
I just made a test on this Activity and managed to get the saved PaymentMethod:
https://github.com/stripe/stripe-android/blob/master/paymentsheet-example/src/main/java/com/stripe/android/paymentsheet/example/samples/ui/complete_flow/CompleteFlowActivity.kt
Can you try to follow/test that activity and see if you manage to solve your issue ? without having the complete project (front/back) it's complicated to narrow...