#Cheelin

1 messages · Page 1 of 1 (latest)

halcyon timberBOT
bronze prairie
#

hello! can you share your test website?

bronze prairie
stable eagle
#

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();
}
}

bronze prairie
#

So right now what you should do, is to

  1. delete the Apple Pay domain registered on acct_1Ll1RPEpJBRUqBOi
  2. 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.

stable eagle
#

Got it, let me check first

bronze prairie
#

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