#lyh0100_api
1 messages · Page 1 of 1 (latest)
👋 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.
👋
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
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Thanks, checking...
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
$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
USD is not support for Alipay in your case, because you are based in Hong kong.
I haven't set up Alipay, the USD I set up, and no payment method. See my request to you
According to your request req_a0jUPTTKLoGG6J you are trying to complete the PaymentIntent with Alipay which isn't supported.
Because you are using USD.
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
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...
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.
There have been successful USD requests for this account, why am I unable to use the project call API
There have been successful USD requests for this account, why am I unable to use the project call API
Can you share an example ?
No this is not a payment request, this is a product creation request.