#aliahmad-default-pm

1 messages · Page 1 of 1 (latest)

cinder storm
#

Hey!

cold sparrow
#

hi

cinder storm
#

You can set a defauLt PM at either the Customer or Subscription level

cold sparrow
#

how can set at customer level

#

with api

#

how can we charge with different payment method every time at customer level

#

@cinder storm

cinder storm
#

Please don't @ me

cold sparrow
#

okay

cinder storm
cinder storm
cold sparrow
#

I am using web ui

cinder storm
#

Which web UI? The Dashboard?

#

Checkout?

cold sparrow
cinder storm
#

There's examples there depending on what language you're using

cold sparrow
#

Cannot charge a customer that has no active card what is this

cinder storm
#

Does the customer have an active payment method?

cold sparrow
#

yes

cinder storm
#

Can you share the cus_xxx?

#

And how are you trying the charge the customer?

cold sparrow
#

Stripe\Stripe::setApiKey('sk_test_51LIYoyDT3g17iFGAp9EJdBqp82HNjbYLPIzOZpHHRDZBoQjhCu94byxa40bphz20A15CakeoDFIJZ339MbWymumw005tDnRbrh');
$charge=Stripe\Charge::create ([
'customer' => $id,
"amount" => $total * 100,
"currency" => "usd",
"description" => "Test payment from Blisky.com."
]);

cinder storm
#

What is $id?

cold sparrow
#

cus_M7gpM0amjSPhcU

#

what is this

cinder storm
#

What is what?

cinder storm
#

It's a migration guide – you shouldn't be building new integrations using the Charges API

#

You should use Payments Intents instead