#sushbhat
1 messages · Page 1 of 1 (latest)
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
ok
@heady trout also if I enable alipay it should only show in china right, why is it showing in india as well
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
@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
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
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
It could be displayed by the currency used in the PaymentIntent
supported currency, and the customer location. We do it automatically
could you elaborate?
you mean if either currency or location is supported then corresponding payments get enabled?
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.
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
Um are you using PaymentElement or Checkout? (just checking)
paymentElement
like this way:
<div id="payment-element">
<!--Stripe.js injects the Payment Element-->
</div>
Um I guess you would need to detect your customer location first, then when you create the PaymentIntent, specify alipay in this step depends on your detection https://stripe.com/docs/payments/alipay/accept-a-payment?platform=web&ui=API#create-payment-intent
The point is disable automatic_payment_methods
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
Yes that's right. Let me ask around a bit
sure thanks
Okie the most feasible option would be disabling Alipay from Payment Method Setting, implementing your own geo-blocker, then:
- If customer is from outside of China, use Automatic Payment Setting as normal.
- If customer is from China, explicitly set
alipayand probablywechatpay, and not use the automatic payment method
This way (1) will never display Alipay since it's disabled from your setting.
nice
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
got it..
one clarification by geo blocker you mean just location detection right to understand user's country? nothing more than that is needed
Yep, your own logic I meant
ok, thanks a lot this helps