#lyh0100_api

1 messages · Page 1 of 1 (latest)

rustic cargoBOT
#

👋 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/1324670956920242236

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

sudden veldt
#

👋
Sorry, we support only english here. If you prefer to fiet support with your preferred language, please reach out to Stripe Support at https://support.stripe.com/

#

@sharp carbon

The PaymentMethod provided (alipay) is not allowed for this PaymentIntent. Please attach a PaymentMethod of one of the following types: card, link. Alternatively, update the allowed payment_method_types for this PaymentIntent to include "alipay".

#

Let's keep talking here

#

@sharp carbon

Are you a technical support?
Yes

#

@sharp carbon please let keep talking in this thread!

#

The problem I am facing now is that when calling to create a payment intention, using CNY can successfully initiate and make the payment, but selecting USD will prompt the error message that was sent to you.
The interface I am using: https://api.stripe.com/v1/payment_intents

#

@sharp carbon the payment intent you've shared do support alipay

sharp carbon
#

req_a0jUPTTKLoGG6J

#

testing environment

sudden veldt
#

The error message:

The PaymentMethod provided (alipay) is not allowed for this PaymentIntent. Please attach a PaymentMethod of one of the following types: card, link. Alternatively, update the allowed payment_method_types for this PaymentIntent to include "alipay".

#

Alipay is supported only for business located in the US

#

While you are based in HK

#

You can't accept alipay from your current Stripe Account. You need to have another one based in the united states in order to accept USD via ALIpay

sharp carbon
#

$url = "https://api.stripe.com/v1/payment_intents";
$data = [
'amount' => $amount,
'currency' => $currency,
'automatic_payment_methods[enabled]' => 'true',
];This is my request, where do I need to set the payment currency and payment method on the platform, or does my request need to be changed

sudden veldt
#

USD is not support for Alipay in your case, because you are based in Hong kong.

sharp carbon
#

I haven't set up Alipay, the USD I set up, and no payment method. See my request to you

sudden veldt
#

According to your request req_a0jUPTTKLoGG6J you are trying to complete the PaymentIntent with Alipay which isn't supported.

#

Because you are using USD.

sharp carbon
#

Do I need to change the payment methods supported by USD on your platform?

#

$data = [
'amount' => 1000,
'currency' => 'usd',
'automatic_payment_methods[enabled]' => 'true',
];

#

public function createPaymentIntent($amount, $currency = 'usd')
{
$url = "https://api.stripe.com/v1/payment_intents";
$data = [
'amount' => $amount,
'currency' => $currency,
'automatic_payment_methods[enabled]' => 'true',
];
return $this->sendRequest($url, 'POST', $data);
}This is my request method

sudden veldt
#

Do I need to change the payment methods supported by USD on your platform?
You need to have a Stripe Account based in the US...

sharp carbon
#

need

#

Is there a problem with my interface request when I write it this way?

sudden veldt
#

No it's good.

#

Simply you can't use Alipay with USD, it's not supported. Your account is based in HongKong and not in the United States.

sharp carbon
#

There have been successful USD requests for this account, why am I unable to use the project call API

sudden veldt
#

There have been successful USD requests for this account, why am I unable to use the project call API
Can you share an example ?

sharp carbon
#

req_xgLoNMeKyvZQqT

#

This is a success

sudden veldt
#

No this is not a payment request, this is a product creation request.

sharp carbon
#

我明天再咨询,今天下班。很抱歉打扰你。

#

I will consult again tomorrow, and I will be off duty today. Sorry to bother you.