#sl_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/1234428977628577874
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- sl_best-practices, 6 days ago, 16 messages
hi there!
hello
so what do you see on your website? an error message? or only the option the pay with card?
can you share your frontent code?
const stripe = Stripe("<?= $stripe["publishable_key"];?>",
{apiVersion : '<?= $paymentMethod->payment_method->api_version ?>'});
const options = {
mode: 'payment',
amount: <?= $stripeCharge->getCharge() ?>,
currency: '<?= strtolower($stripeCharge->getCurrency()) ?>',
on_behalf_of: '<?= $paymentMethod->account_no?>',
payment_method_configuration : 'pmc_1P6WQCGxIuZBsYhcEFi38CQO',
layout: {
type: 'tabs',
defaultCollapsed: false,
}
// Fully customizable with appearance API.
};
// Set up Stripe.js and Elements to use in checkout form
const elements = stripe.elements(options);
// Create and mount the Payment Element
const paymentElement = elements.create('payment');
paymentElement.mount('#payment-element');
do you see any errors or warning in the browser console?
the payment method that you want to see is acss_debit?
{
"event_name":"elements.upe.initial_displayed_payment_methods",
"created":1714381609519,
"batching_enabled":true,
"event_count":39,
"os":"Windows",
"browserFamily":"Chrome",
"version":"4094b7b36a",
"event_id":"e69bb6a9-902a-4429-b9ec-e0b8a790dd9d",
"deploy_status":"canary",
"browserClassification":"modern",
"key":"pk_test_51HheMPGxIuZBsYhcHsuj39GeF3HdUquXfUEQPGPgVaTUrojn607pIWHZoUUGvU3f0ZBxQ4SnouReB2Dd9NtDCYko00WgCOVQ7u",
"key_mode":"test",
"referrer":"http://esm",
"stripe_js_id":"9d1e9ec1-ac22-47e7-8376-ce6c778e48b2",
"controller_load_time":1714381607860,
"wrapper":"unknown",
"es_module":"false",
"deploy_status_time_to_fetch_ms":"30",
"deploy_status_fetch_failed":"false",
"cdn_name":"Cloudfront",
"cdn_pop_dc":"DUB",
"decoupled_intent":"true",
"merchant":"acct_1HheMPGxIuZBsYhc",
"frame_width":456,
"amount":1900,
"currency":"cad",
"hidden_payment_methods":"",
"visible_payment_methods":"card",
"element":"payment"
}
Is that the correct part of the response to check?
what do you mean?
can you answer my above questions?
do you see any errors or warning in the browser console?
the payment method that you want to see is acss_debit?
no warnings in the console
๐ taking over for my colleague. Let me catch up.
Hi
taking a look please give me a couple of minutes
thank you
thats ok I appreciate the help
ok so the only PMs turned on, on your dashboard, are cards, sepa_debit, and acss_debit.
for acss_debit your customer location needs to be in CA in order to show it which is not the case since you're testing from Ireland.
for sepa_debit, it only works if the currency is EUR
and you passed CAD
that's why the only available PM types here is cards
So even though the test account acct_1JGQRO2ci7mmRPbC is in CAD its taking my phyiscal location into account - is that correct?
yes as a customer
this is explained here https://docs.stripe.com/payments/acss-debit
so each PM has a section that explains when it's available (called Payment Method properties)
Customer locations/Presentment currency etc.
Is there anyway we can test CAD payment methods from Ireland?
Ok - I'll work in our Irish account for now and then find a way to test in the CA one - thanks for the help