#kiran_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/1422113403320930338
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you please give your thoughts on this issue
Probably you are using the Connected Account'ts key?
Make sure you are using the Platform key, and the Connected Account Id in destination
No that also I checked i am using the platform key i re checked
While i am creating payment with destination i am not getting this error its working properly only for subscription i am facing this
@lone hazel Is there any other configuration issues?
Can you share the errored request id req_xxx?
{
"error": {
"message": "The 'transfer_data[destination]' param cannot be set to your own account.",
"param": "transfer_data[destination]",
"request_log_url": "https://dashboard.stripe.com/acct_1RiBqzQViVnGykmM/test/logs/req_OuyGiVwXTwbAwr?t=1759129296",
"type": "invalid_request_error"
}
}
req_OuyGiVwXTwbAwr
@lone hazel
Sorry will be here soon
Ah okie
You use the Platform Key, but also using the Stripe Account header and the transfer destination to acct_1RiBqzQViVnGykmM
Remove the Account header
Thanks it worked
Glad to hear the advice helped!
Hi I have one more query
For subscription payment apple pay google pay option is not showing but for one time payment using payment intent this option is present
I have give the PaymentMethodTypes = new List<string> { "card" } while creating subscription but still not that option is available is there any configuration i am missing?
Apple Pay and Google Pay should still show as normal for subscription payments as with one-time payments
which UI surface are you using to complete the Payment? for example, Payment Element, Payment Sheet, Card Element, etc?
ok! Apple Pay and Google Pay are both supported for subscriptions, so we'll need some more information about how you're testing this
are you able to share a URL to the checkout page you're testing this with so we can inspect from our end?
we are setting this flutter mobile app
await Stripe.instance.initPaymentSheet(
paymentSheetParameters: SetupPaymentSheetParameters(
paymentIntentClientSecret: clientSecret,
merchantDisplayName: merchantDisplayName,
style: ThemeMode.system,
googlePay: PaymentSheetGooglePay(
merchantCountryCode: countryCode,
currencyCode: currency,
testEnv: testMode,
buttonType: isRenewable == true
? PlatformButtonType.subscribe
: PlatformButtonType.pay,
label: merchantDisplayName,
),
applePay: PaymentSheetApplePay(
merchantCountryCode: countryCode,
buttonType: isRenewable == true
? PlatformButtonType.subscribe
: PlatformButtonType.pay,
),
appearance: PaymentSheetAppearance(
colors: PaymentSheetAppearanceColors(
primary: context.mounted ? context.color.primary.cyan500 : null,
background:
context.mounted ? context.color.grayScale.grey11 : null,
componentBackground:
context.mounted ? context.color.grayScale.grey10 : null,
),
),
allowsDelayedPaymentMethods: false,
customFlow: false,
primaryButtonLabel:
isRenewable == true ? "subscribe".tr() : "pay_now".tr(),
),
);
await Stripe.instance.presentPaymentSheet();
this is the code we are using in flutter, since this is mobile app unable to provide the checkout page url
thanks! we're investigating this now
is there a guide or doc you followed when setting up the integration?