#carlos-subscription-boleto

1 messages · Page 1 of 1 (latest)

narrow oxide
#

Hello! What have you tried? What's blocking you?

feral saffron
#

hahaha

#

nothing is blocking me

narrow oxide
#

What do you mean?

feral saffron
#

How to create a subscription using this payment method

narrow oxide
#

What have you tried?

#

I'm sorry I'm confused by what doesn't just work, have you just tried?

#

(haven't used Boleto with subs before so maybe it doesn't work but it'd be easier with a clear error or example or code)

feral saffron
#

My question is: How to create a subscription using the "Boleto" payment method?

narrow oxide
#

I'm sorry, I don't understand what's going on. You say the exact same question 3 times

#

I just tried for one minute and ```$subscription = $stripe->subscriptions->create([
'customer' => 'cus_123',
'items' => [
['price' => 'price_1234', 'quantity' => '1',],
],
'payment_behavior' => 'default_incomplete',
'payment_settings' => [
'payment_method_types' => ['boleto'],
],
'expand' => ['latest_invoice.payment_intent'],
]);

narrow oxide
#

@feral saffron are you still here?

feral saffron
#

Hi, I did the same and it worked

#

Thanks