#MaxMatteo
1 messages · Page 1 of 1 (latest)
Which payment method type are you working with? SEPA?
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?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Pretty sure we don't expose those fields via API, confirming
okay
so how am i supposed to get those info to my customers? only via web ui and manual transfer?
They'll be available on the HIP and the invoice itself
HIP?
so whats the proper way during invoice generation to include that info?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Include what info?
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
Sure, use webhooks and listen for invoice.finalized
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(),
],
],
],
],
];
}```
See details here for invoice creation: https://stripe.com/docs/invoicing/bank-transfer
Specifically, you want collection_method: 'send_invoice'
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
Yep, as stated you need to use send_invoice
If you don't want the email to send, then you'll need to turn off this setting: https://dashboard.stripe.com/settings/billing/automatic
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.