thephpleague / omnipay-stripe

Stripe driver for the Omnipay PHP payment processing library
MIT License
185 stars 168 forks source link

CreatePaymentMethodRequest - should billing details be attached to having a card? #226

Open darylp041 opened 1 year ago

darylp041 commented 1 year ago

Given you can pass data via the Stripe API, and get a token in return, do billing details need to be so heavily linked to having/providing the card details?

If you pass a token, then you shouldn't need to handle the card details again.

This is inside: Omnipay\Stripe\Message\PaymentIntents\CreatePaymentMethodRequest

This might be prohibiting any/all customer information from being sent. You can pass customer information via the Stripe create token (https://stripe.com/docs/js/tokens_sources/create_token?type=cardElement), but server side handling would be easier.