spiral-modules / transactions

Stripe transactions integration and Vault controls
3 stars 0 forks source link

Possible stripe payment methods #2

Open vvval opened 6 years ago

vvval commented 6 years ago
$variants = [
    ['customer' => 'customer id', 'source' => null],
    ['customer' => 'customer id', 'source' => 'customer stored card id'],
    ['customer' => null, 'source' => 'source token id'],
    ['customer' => null, 'source' => ['credit', 'card', 'details', 'array']],
];

https://stackoverflow.com/a/34416413 https://stripe.com/docs/api#create_charge

vvval commented 6 years ago

This will affect protected function paymentTokenMetadata(TokenSource $source): array method https://github.com/spiral-modules/transactions/blob/master/source/Transactions/Gateways/Stripe/StripeGateway.php#L195