#sl_api

1 messages ยท Page 1 of 1 (latest)

cerulean cloakBOT
#

๐Ÿ‘‹ 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.

strong yewBOT
#

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.

jolly pelican
#

hi there!

jolly imp
#

hello

jolly pelican
#

so what do you see on your website? an error message? or only the option the pay with card?

jolly imp
#

I want to see the option to pay with Bank Debits but the option doesn't appear

jolly pelican
#

can you share your frontent code?

jolly imp
#

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');

jolly pelican
#

do you see any errors or warning in the browser console?

#

the payment method that you want to see is acss_debit?

jolly imp
#

{
"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?

jolly pelican
#

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?

jolly imp
#

no warnings in the console

cerulean cloakBOT
dawn relic
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

jolly imp
#

Hi

dawn relic
#

taking a look please give me a couple of minutes

jolly imp
#

thank you

dawn relic
#

sorry I'm still looking

#

it's really busy this morning

jolly imp
#

thats ok I appreciate the help

dawn relic
#

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

jolly imp
#

So even though the test account acct_1JGQRO2ci7mmRPbC is in CAD its taking my phyiscal location into account - is that correct?

dawn relic
#

yes as a customer

#

so each PM has a section that explains when it's available (called Payment Method properties)
Customer locations/Presentment currency etc.

jolly imp
#

Is there anyway we can test CAD payment methods from Ireland?

dawn relic
#

you can try using VPNs

#

or fake location apps

#

but it doesn't always work

jolly imp
#

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