#Rupinder

1 messages · Page 1 of 1 (latest)

brisk furnaceBOT
gaunt pasture
#

this is the code

shadow bough
gaunt pasture
#

it updated the name insted of card

shadow bough
#

I'm not familiar with php curl, but there's a Stripe PHP library that you should use in your PHP app

gaunt pasture
#

how to pass this as parameter invoice_settings.default_payment_method

#

can you give me example

shadow bough
#
$stripe->customers->update(
  'cus_XXX',
  ['invoice_settings' => ['default_payment_method' => 'pm_XXX']]
);
gaunt pasture
#

for some reason it is updating name

shadow bough
#

Was that the result from my code?

gaunt pasture
#

Api you sent

#

I am using curl

#

can you help me with that

shadow bough
#

As I said earlier, I'm not familiar with PHP curl, but I can help if you are using Stripe PHP library.

gaunt pasture
#

anyone who can help me with curl

#

can you send me the link to stripe php library then

shadow bough
#

I've already sent you

gaunt pasture
#

now where to define secret key and how to include