#sushbhat

1 messages · Page 1 of 1 (latest)

sharp tulipBOT
heady trout
#

We don't own the ngx-stripe so you probably would want to reach out to its maintainer. But generally reutnrUrl is quite a common option and should be normally supported

burnt karma
#

ok

#

@heady trout also if I enable alipay it should only show in china right, why is it showing in india as well

heady trout
#

It is to accept payment from customer who has Alipay as a payment method, so for example a Chinese can use their Alipay to pay to a store in India

burnt karma
#

@heady trout I don't get it completely, because I had also enabled google pay and thats not shown in Inida eventhough its widely accepted payment method here but the chinese payment methods are shown eventhough it might not work in india

heady trout
#

GooglePay is a different payment method and controlled by Google. They may have different requirements or configuration

#

In India there was a different version of GooglePay AFAIK

burnt karma
#

oh ok

#

but why is alipay displayed in india? does that mean its supported?

#

and is it possible to control by locations, for eg: only display it in china

heady trout
#

It could be displayed by the currency used in the PaymentIntent

burnt karma
#

controlled by currency

#

?

heady trout
#

supported currency, and the customer location. We do it automatically

burnt karma
#

could you elaborate?
you mean if either currency or location is supported then corresponding payments get enabled?

heady trout
#

Yes, that's how Automatic Payment Method works

Stripe automatically presents your customers payment method options by evaluating their currency, payment method restrictions, and other parameters. We recommend that you configure your payment methods from the Stripe Dashboard using the instructions in Accept a payment.

burnt karma
#

got it thanks a lot
but do we have any control to customize this? like I want alipay to display only in china, even though it could be technically supported in india

heady trout
#

Um are you using PaymentElement or Checkout? (just checking)

burnt karma
#

paymentElement

#

like this way:
<div id="payment-element">
<!--Stripe.js injects the Payment Element-->
</div>

heady trout
#

The point is disable automatic_payment_methods

burnt karma
#

you mean if its china then pass alipay and not use automatic payment methods?
but the challenge here is other locations will still use automatic payment methods and end up displaying alipay

heady trout
#

Yes that's right. Let me ask around a bit

burnt karma
#

sure thanks

sharp tulipBOT
heady trout
#

Okie the most feasible option would be disabling Alipay from Payment Method Setting, implementing your own geo-blocker, then:

  1. If customer is from outside of China, use Automatic Payment Setting as normal.
  2. If customer is from China, explicitly set alipay and probably wechatpay, and not use the automatic payment method
#

This way (1) will never display Alipay since it's disabled from your setting.

burnt karma
#

nice

heady trout
#

downside is that you will likely ignore Chinese who has Alipay, but is travelling outside of their country

#

like a Chinese is currently travel in India

burnt karma
#

got it..
one clarification by geo blocker you mean just location detection right to understand user's country? nothing more than that is needed

heady trout
#

Yep, your own logic I meant

burnt karma
#

ok, thanks a lot this helps