admin管理员组文章数量:1391964
When setting up a Stripe SetupIntend for triggering later payment, I can choose from a bunch of payment methods which are seen here:
So something like this can be done:
$setupIntents = $stripe->setupIntents->create([
'customer' => $customer_id,
'description' => 'abcdefgh',
'payment_method_types' => ['card', 'sepa_debit', 'ideal', 'bancontact'],
'metadata' => [
"lastname" => $item->name,
"email" => $item->email,
],
], [
'idempotency_key' => vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex(random_bytes(16)), 4)),
]);
Everything works great, but how can Google Pay be integrated here? Isn't Google Pay or Apple Pay possible to be used as a payment method here?
When setting up a Stripe SetupIntend for triggering later payment, I can choose from a bunch of payment methods which are seen here:
https://stripe./docs/api/setup_intents/object#setup_intent_object-payment_method_options
So something like this can be done:
$setupIntents = $stripe->setupIntents->create([
'customer' => $customer_id,
'description' => 'abcdefgh',
'payment_method_types' => ['card', 'sepa_debit', 'ideal', 'bancontact'],
'metadata' => [
"lastname" => $item->name,
"email" => $item->email,
],
], [
'idempotency_key' => vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex(random_bytes(16)), 4)),
]);
Everything works great, but how can Google Pay be integrated here? Isn't Google Pay or Apple Pay possible to be used as a payment method here?
Share Improve this question asked Mar 10, 2023 at 17:23 maidanmaidan 2293 silver badges10 bronze badges1 Answer
Reset to default 6Apple Pay and Google Pay are included in the card payment method type, so you don’t need to explicitly pass Apple Pay and Google Pay here. As long as you met the requirements such as enabling Wallets Payment Methods, https://dashboard.stripe./test/settings/payment_methods and have a card on your Google Pay account or add a card to your Wallet for Safari etc., it would show up.
本文标签: javascriptGoogle Pay in Stripe setupIntents paymentmethodtypesStack Overflow
版权声明:本文标题:javascript - Google Pay in Stripe setupIntents payment_method_types - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744737801a2622436.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论