Open vvval opened 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
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
protected function paymentTokenMetadata(TokenSource $source): array
https://stackoverflow.com/a/34416413 https://stripe.com/docs/api#create_charge