#femina-agravat_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1253337227581460512
đ Have more to share? Add details, code, screenshots, videos, etc. below.
This is expected if the customer is already signed into their Link account.
But they haven't signed.
Can we remove that box ? Securly save information for 1-click checkout ?
If you remove Link as a Payment Method, yes.
You would do that via your PaymentMethod settings: https://dashboard.stripe.com/test/settings/payment_methods
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
i don't want to remove link payment menthod
I just want that checkout should not be bydefault checked.
Hmm I don't think that is possible
Let me check
Actually, are you using setup_future_usage when you create your Checkout Session?
No i think , still let me check in code
public function createCheckoutSession($lineItemArray,$customerEmail,$metaTags,$mode="payment",$couponId='',$existingCustomerId = '',$customer_email=''){
$data = [
'line_items' => $lineItemArray,
'mode' => $mode,
'success_url' => $this->baseURL.'card-payment-success?session_id={CHECKOUT_SESSION_ID}',
'cancel_url' => $this->baseURL.'card-payment-cancel?session_id={CHECKOUT_SESSION_ID}',
'billing_address_collection' => 'required',
'metadata' => $metaTags
];
if(!empty($couponId)){
$data['discounts'] = [[
'coupon' => $couponId,
]];
}
if(!empty($existingCustomerId)){
$data['customer'] = $existingCustomerId;
}else{
$data['customer_email'] = $customer_email;
}
$session = \Stripe\Checkout\Session::create($data);
return $session->url;
}
NO i am not usin setup_future_usage on checkout session