#Sv1751

1 messages · Page 1 of 1 (latest)

native sailBOT
coarse shadow
#

Do you have an example URL, publicly accessible to test?

stark agate
coarse shadow
#

Okie.. how do I navigate to the payment page?

stark agate
coarse shadow
#

Um okie I can see it doesn't have ApplePay

#

Have you registered the ApplePay domain?

stark agate
#

Do you mean, we (as a parental account) registered the ApplePay dpmain?

coarse shadow
#

Yes, in most case. To clarify is this a Direct Charge? How do you initialized the frontend with Publishable Key?

stark agate
#

Yes. We suppose to have a registered domain. But I'll double check

coarse shadow
#

But the domain will show up on their account

#

Before digging deeper, can you confirm the part about Direct Charge?

#

I would like to see the code you initialized stripe.js with your Publishable Key

stark agate
#

elements = stripe.elements({appearance, clientSecret});
let userModel = TPParam.config ? TPParam.config.user || TPParam.user : TPParam.user;
const defaultOptions = {
defaultValues: {
billingDetails: {
name: fullName ? fullName: userModel.displayName,
email: userModel.email
}
},
fields: {
billingDetails: {
},
}
};
paymentOptions = merge(defaultOptions, getStripeCreateOptions());

paymentElement = elements.create('payment', paymentOptions);
paymentElement.mount('#stripe-payment-elements');
coarse shadow
#

How do you initialize stripe in the first place

stark agate
#

yes, it's direct charge

#

$scope.initStripeApiKey(params.publishableAPIKey, params.accountId);

#

this.initStripe = () => {
const locale = lang.getLanguageTag();
let params = {
locale: locale,
};
if (accountId) {
params.stripeAccount = accountId;
}
stripe = Stripe(apiKey, params);
}

coarse shadow
#

Okie I see, thanks very much. Last question: is this connected account created in Test mode?

#

And was it connected to your Platform account in Test mode?

stark agate
#

I don't know exactly. Need to ask client

#

You can not check it by yourself?

coarse shadow
#

I see the account is connected to your Platform in test mode

#

So here are conditions to make a Direct Charge with ApplePay domain to work (typing....)

#

So you will need to:

  • Reconnect the Connected Account to your Platform Account in Live mode
  • Ask them to remove the ApplePay domain in their account (I am seeing they currently have dev.kyobun.co.jp incorrectly)
  • Register their ApplePay domain again, using your Live key and the Stripe Account header as mentioned in the Doc above
stark agate
#

Okey thank you we will try

stark agate
#

One last question: to register the domain we need to make the following api call? Stripe.apiKey = "sk_live_••••••••••••••••••••••••";

ApplePayDomainCreateParams params =
ApplePayDomainCreateParams.builder()
.setDomainName("example.com")
.build();

RequestOptions requestOptions =
RequestOptions.builder()
.setStripeAccount("{{CONNECTED_ACCOUNT_ID}}")
.build();

ApplePayDomain domain = ApplePayDomain.create(params, requestOptions);

#

it is impossible to register new domain from the dashboard?

coarse shadow
#

No, you need to set it via API like that

stark agate
#

We just realized that we use Payment Element not Payment request button

#

Payment Element shows ApplePay button in test mode for connected account?

#

Is your advise relevant for Payment Element?

coarse shadow
#

Yes! It also requires to register the domain