#yonghuming1212
1 messages · Page 1 of 1 (latest)
hi! what's the error exactly?
{"amount":200,"amountCapturable":0,"amountDetails":{"tip":{}},"amountReceived":0,"captureMethod":"manual","clientSecret":"pi_3NTfZqEOWERua1VL1V7HT1UY_secret_H5SZFnZ0IfmAOvjKV2WvxmFDQ","confirmationMethod":"manual","created":1689316446,"currency":"usd","customer":"cus_OGBx0y29wBVAz1","description":"201112115156182999","id":"pi_3NTfZqEOWERua1VL1V7HT1UY","livemode":true,"metadata":{},"nextAction":{"type":"use_stripe_sdk","useStripeSdk":{"directory_server_encryption":{"algorithm":"RSA","certificate":"-----BEGIN CERTIFICATE-----\nMIIGAzwmVmlzYSEgZUNv\nbW1lcmNCENv\nbG9yYWRvMQswCQYDVQQGEwJVUzENMAsGA1UECgwEVklTQTEvMC0GA1UECwwmVmlz\nYSBJbnRlcm5hdGlvbmFsIFNlcnZpY2UgQXNzb2NpYXRpb24xJTAjBgNVBFHeweZX\nOWumZmyGDw==\n-----END CERTIFICATE-----\n","directory_server_id":"A000000003","root_certificate_authorities":["-----BEGIN CERTIFICATE-----\nMIIFqTCCA5GgAwIBAgIPUT6WAAAA20Qn7qzgvuFIMA0GCSqGSIb3DQEBCwUAMG8x\nCzAJBgNIChWthTJKh7w==\n-----END CERTIFICATE-----\n"]},"directory_server_name":"visa","merchant":"acct_1LXQmFEOWERua1VL","server_transaction_id":"0f0ffbe8-1799-47fa-9448-b9a3b7bc4d73","three_d_secure_2_source":"payatt_3NTfZqEOWERua1VL1HPayola","three_ds_method_url":"https://geoissuer.cardinalcommerce.com/DeviceFingerprintWeb/V2/Browser/RenderMethodURL?id=6079842","three_ds_optimizations":"kf","type":"stripe_3ds2_fingerprint"}},%22object%22:%22payment_intent%22,%22paymentMethod%22:%22pm_1NTfZpEOWERua1VL%22,%22paymentMethodOptions%22:{%22card%22:{%22requestThreeDSecure%22:%22automatic%22}},%22paymentMethodTypes%22:[%22card%22],%22status%22:%22requires_action%22}
@round gale we'll talk in this thread
this seems like a normal enough PaymentIntent I think, that requires 3D Secure. What is the question exactly?
How should I continue processing the response message in order to obtain 3D authentication and deduct the payment?
you should confirm the PaymentIntent on the frontend
How can the returned message be used in the front-end?
i.e. after creating a PaymentIntent, the normal integration is that you pass the client_secret to the frontend and use our frontend Javascript libraries to collect the customer's card information, which will also present 3D Secure. https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
for example, you could use https://stripe.com/docs/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-attached, there are a few different ways.
certificate Is it useless?
no it's not useless
but you never do anything with it yourself or write any code to access/use that part of the object, it's for internal use by our library. You just call the functions in our Javascript library and they handle 3D Secure.
clientSecret Can we just handle it by returning it to the front-end?
yes
as I said : "the normal integration is that you pass the client_secret to the frontend and use our frontend Javascript libraries to collect the customer's card information, which will also present 3D Secure"
I'd suggest reading the docs I linked!
我可以用 中文聊吗?
No.
what does "send a demo" mean?