#muhammad-adeel_api

1 messages ¡ Page 1 of 1 (latest)

carmine cosmosBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1354714090769088573

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

faint otter
#

Hi there, let me check if there's an option to remove the link

oak tusk
#

sure

#

use Stripe\Invoice as StripeInvoice
$stripeInvoice = StripeInvoice::create([
'customer' => $invoice->applicant->stripe_id,
'collection_method' => 'send_invoice',
'due_date' => Carbon::parse($invoice->due_date)->timestamp,
'footer' => Invoice::STRIPE_FOOTER,
'payment_settings' => [
'payment_method_types' => null,
],
]);

here is api call
i have set payment_method_types is null but stripe enabled payment options by default

#

i need to remove with api not from stripe dashboard. because have user account on another project that's need this option

faint otter
oak tusk
#

no i have used this account on other project that's need this option
i need to remove with api call on specific cases

#

use Stripe\Invoice as StripeInvoice
$stripeInvoice = StripeInvoice::create([
'customer' => $invoice->applicant->stripe_id,
'collection_method' => 'send_invoice',
'due_date' => Carbon::parse($invoice->due_date)->timestamp,
'footer' => Invoice::STRIPE_FOOTER,
'payment_settings' => [
'payment_method_types' => null,
],
]);

here is api call
i have set payment_method_types is null but stripe enabled payment options by default
i need to remove with api not from stripe dashboard. because have user account on another project that's need this option

faint otter
#

No I don't see an option to remove the link through API