#anwar-paymentmethod-source
1 messages · Page 1 of 1 (latest)
@normal dust no there's no compatibility in that way
A PaymentMethod is the newer abstraction, it shipped in 2018, that's what everyone should use. If you are on that API, ignore default_source entirely, it doesn't matter/apply
we can talk, we're doing it right now yes
I really don't understand the question though and what Terminal has to do with the ask
Terminal uses PaymentIntent and PaymentMethod APIs
can you call me?
No, sorry, that's not something we can do
can I schedule zoom meeting?
No, if you want you request a phone call you can log in and "request a call" with support here: https://support.stripe.com/contact
But if you have specific technical questions about your integration I'm happy to help here
ok
i am trying to read a card using stripe terminal for later charge.
1.by using terminal.readReusableCard()
got payment_method_id
2.using
$stripe->paymentMethods->attach(
'pm_................',
['customer' => 'cus_.............'],
['stripe_account' => 'acct_...............']
);
3.using
$stripe->customers->update(
'cus_',
['invoice_settings' => ['default_payment_method' => 'pm_']],
['stripe_account'=>'acct_']
);
after that payment bethod becomes default payment method not default source can i make it default source?
No, that's for older source API integrations. For payment methods, there is no general default payment method, it's specific to invoices (and subscriptions, which use invoices).
What's your intended use case with the saved payment method?
We are rental company in our current flow we save card as deafault_source for our customer and charge them later after equipment returned also upcharge if something is damaged.
But now client wanted to integrate stripe terminal and instead of filling out credit card information they just want to swipe and that card should be default source for that customer rest flow would be same!
Are these subscription/invoice payments, or one time payments using payment intents?
no
Ok, so how are you creating those payments?
$stripe->charges->create([
'amount' => $payableAmount,
'currency' => $this->currency_code,
'customer' => $stripe_cus_id,
'description' => 'Payment for order reference no# '.$order_info['reference'],
], ['stripe_account' => $stripe_configs['connected_account_id']]);
@normal dust looking, one sec
@normal dust Stripe Terminal mostly creates PaymentMethod objects, which you cannot use in default_source
is that what you're seeing?
you create a PaymentIntent instead of a Charge, and you pass it under payment_method: pm_123 param i
you can refund yes, what do you mean by "upcharge"?
here are the docs
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
PaymentIntents are a state machine, rather than the simpler Charges which are more binary
so you need to create and confirm the PaymentIntent , to create the payment