#MaxMatteo

1 messages · Page 1 of 1 (latest)

vernal runeBOT
nova inlet
#

hi

delicate oxide
#

Which payment method type are you working with? SEPA?

nova inlet
#

yeah its sepa

#

using stripe test environment with my user: cus_Mgn5Ltugqjbdo3

#

i created the iban within the dashboard

#

but how do i create/fetch that via api?

delicate oxide
#

Pretty sure we don't expose those fields via API, confirming

nova inlet
#

okay

#

so how am i supposed to get those info to my customers? only via web ui and manual transfer?

delicate oxide
#

They'll be available on the HIP and the invoice itself

nova inlet
#

HIP?

#

so whats the proper way during invoice generation to include that info?

delicate oxide
nova inlet
#

okay will be included on the invoice itself

#

ok

#

so can i create an invoice with bank_transfer where i send the email by myself?

#

dont want stripe to send that mail

delicate oxide
#

Sure, use webhooks and listen for invoice.finalized

nova inlet
#

so what are the settings

#

'collection_method' => 'charge_automatically',

#

and this ?

#
        if ($this->user->enable_bank_transfers) {
            $payload['payment_settings'] = [
                'payment_method_types'   => ['customer_balance'],
                'payment_method_options' => [
                    'customer_balance' => [
                        'funding_type'  => 'bank_transfer',
                        'bank_transfer' => [
                            'type'             => 'eu_bank_transfer',
                            'eu_bank_transfer' => [
                                'country' => $this->user->detectCountryCode(),
                            ],
                        ],
                    ],
                ],
            ];
        }```
delicate oxide
nova inlet
#

but send_invoice will make stripe send the mail?

#

i dont want that

#

right now i get:

#

The payment method type `customer_balance` cannot be used with invoices that have the `collection_method` set to `charge_automatically`. {"exception":"[object] (Stripe\\Exception\\InvalidRequestException(code: 0): The payment method type `customer_balance` cannot be used with invoices that have the `collection_method` set to `charge_automatically

delicate oxide
#

Yep, as stated you need to use send_invoice

nova inlet
#

send invoice means I have to send the invoice?

#

thought it means stripe will send it

delicate oxide
nova inlet
#

ah great

#

have all that disabled

#

didnt know that

#

thank you

#

testing

nova inlet
#

works

#

nice !

#

thanks