#femina-agravat_code

1 messages ¡ Page 1 of 1 (latest)

worthy plazaBOT
#

👋 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.

echo violet
#

Hello

#

What is your question exactly?

true anvil
echo violet
#

This is expected if the customer is already signed into their Link account.

true anvil
#

But they haven't signed.

#

Can we remove that box ? Securly save information for 1-click checkout ?

echo violet
#

If you remove Link as a Payment Method, yes.

true anvil
#

i don't want to remove link payment menthod

I just want that checkout should not be bydefault checked.

echo violet
#

Hmm I don't think that is possible

#

Let me check

#

Actually, are you using setup_future_usage when you create your Checkout Session?

true anvil
#

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

echo violet
#

Yeah I don't think there is any way to prevent that checkbox from being ticked

#

I'll file some feedback internally about that though

true anvil
#

Ok thank you

#

But any exact reseon why it is being ticked ? Previsouly it was not happening. It from last one week that automatically ticked