#Cheelin
1 messages · Page 1 of 1 (latest)
hello! can you share your test website?
can you share how you're initializing Stripe on your frontend? https://stripe.com/docs/js/initializing
redact your public key before sharing your code snippet
var client_secret = res && res.client_secret;
var public_key = res && res.public_key;
var stripe = window.Stripe(public_key);
var paymentRequest = null;
try {
paymentRequest = stripe.paymentRequest({
country: model.order.shipping_address.country_code,
currency: model.order.currency_code.toLowerCase(),
total: {
label: 'total',
amount: parseFloat(res.amount)
},
requestPayerName: true,
requestPayerEmail: true
});
} catch (error) {
console.error('[Stripe|paymentRequest create error]', JSON.stringify(error));
if (JSON.stringify(error).includes('country should be one of the following strings')) {
markAPayUnavailable(COUNTRY_NOT_SUPPORT);
} else {
markAPayUnavailable();
}
}
So right now what you should do, is to
- delete the Apple Pay domain registered on acct_1Ll1RPEpJBRUqBOi
- register the domain on the connected account using the Platform's secret key and the Stripe-Account header as mentioned here : https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-using-with-connect.
Gentle reminder that this domain registration must be done via the API. It's not possible to register the domain (on behalf of the connected account using the Stripe-Account header) via the Dashboard.
Got it, let me check first
example
\Stripe\Stripe::setApiKey("sk_live_••••••••••••••••••••••••"); //platform secret key
\Stripe\ApplePayDomain::create([
'domain_name' => 'xiaoliao.stg.myshoplaza.com',
],[
'stripe_account' => 'acct_1Ll1RPEpJBRUqBOi',
]);
let me know once you've re-registered the domain and i'll take a look