#wilder-Checkout

1 messages · Page 1 of 1 (latest)

dark coral
#

I don't think it's possible. How about pre-attach a PaymentMethod to a Customer to pass in?

minor surge
#

Further, and sorry for not being able to find the right flow, but what would be actual flow for payment capturing?

At the moment I have users saving the product and quantity in their cart (on my database), written in raw format so I can easily pass them into my REST endpoint - but where does the paymentintent come into play?

Ultimately I'm looking for the best approach to capture a payment!

dark coral
#

Could be this one

minor surge
#

It would seem, even after setting their saved card as default, and ensuring their billing address is valid, that it still doesn't populate with their saved card.

#

see here as well as the customers information doesn't seem to preload, that being billing address info, or email, etc

{
"id": "cs_test_b1eHNSRqbymdgiUHBWekMPEp9g2UgxJ3HQDnSfRczzWP90Z84ysJ4mWQ05",
"object": "checkout.session",
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": 88000,
"amount_total": 88000,
"automatic_tax": {
"enabled": false,
"status": null
},
"billing_address_collection": null,
"cancel_url": "https://example.com/cancel",
"client_reference_id": null,
"consent": null,
"consent_collection": null,
"currency": "usd",
"customer": "cus_LoHomGMb2ffRJx",
"customer_creation": null,
"customer_details": {
"address": null,
"email": "example@example.com",
"name": null,
"phone": null,
"tax_exempt": "none",
"tax_ids": null
},
"customer_email": null,
"expires_at": 1654757053,
"livemode": false,
"locale": null,
"metadata": {},
"mode": "payment",
"payment_intent": "pi_3L8IcjGEi8jScj3f0lTtjeWy",
"payment_link": null,
"payment_method_options": {},
"payment_method_types": [
"card"
],
"payment_status": "unpaid",
"phone_number_collection": {
"enabled": false
},
"recovered_from": null,
"setup_intent": null,
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [],
"shipping_rate": null,
"status": "open",
"submit_type": null,
"subscription": null,
"success_url": "https://example.com/success",
"total_details": {
"amount_discount": 0,
"amount_shipping": 0,
"amount_tax": 0
},
"url": "xxx"
}

dark coral
#

I am not sure but the default payment method of this Customer doesn't have Billing Address