#mitsu_api

1 messages · Page 1 of 1 (latest)

earnest nightBOT
#

👋 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/1438372084056199239

📝 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.

proper flume
#

I’m trying to enable SEPA Direct Debit, but it asks for ID verification for 有料オプ.
How can I complete the verification in test mode?

#

alo

timid badger
#

Hmm have you tried the testing identity

proper flume
#

Which one of my questions are you answering?

#

alo

timid badger
#

The verification part

#

For the prev question, lets rely on PMC in Dashboard and not explicitly specify payment_method_types

earnest nightBOT
proper flume
#

how to ID verification for 有料オプ 有料オプ ?

indigo oasis
# proper flume

Hey! What my colleague meant was to leave out/remove the payment_method_types field, doing so would mean that Stripe would look at the PMC configured from the dashboard and render the payment methods accordingly

indigo oasis
proper flume
#

My client's requirements are:
Cards, SEPA Direct Debit, Bank Transfer (including SEPA), PayPal via Stripe
But currently, I have only implemented Cards.
How should I implement the remaining ones?

indigo oasis
# proper flume how to ID verification for 有料オプ 有料オプ ?

In order to setup these payment methods in test mode:

  1. You need to go to your testmode PMC: The image shows that you are in livemode, you need to be in the testmode page here: https://dashboard-admin.stripe.com/acct_1MgeedKSVjwCWErT/test/settings/payment_methods/pmc_1QOifRKSVjwCWErTnqrqO4In

  2. Enabling the different Payment methods:

  • SEPA Direct Debit: Click enable, and you should be able to turn it on in testmode easily.
  • Bank transfers: Click enable, and you should be able to turn it on in testmode easily.
  • PayPal via Stripe: Do note that only Stripe accounts in the following countries (click on"Business Locations") can accept PayPal payments.https://docs.stripe.com/payments/paypal

Let me know if you have trouble enabling the following options here

proper flume
#

SEPA direct debit => OK

#

'payment_method_types' => [
"card",
"sepa_debit"
],

How should I modify this to be able to display bank transfer?

indigo oasis
#

Ah ok, given that you are using checkout sessions, you would need to have a Customer object as part of the creation, this can be seen here

Bank transfers aren’t available on Checkout Sessions that didn’t include an existing Customer object as part of the of the session creation request.

proper flume
#

Can’t it be displayed on the checkout session screen?

indigo oasis
#

Once you have done so, the checkout session would have this option here

indigo oasis
#

@proper flume Were you able to get it to show?

proper flume
#

I am trying.

#

What about PayPal?

indigo oasis
#

For Paypal, given that your stripe account is set up in Japan, it is not listed as one of the countries that is eligible for PayPal usage

proper flume
#

So does that mean it cannot be displayed on the Japan platform?

indigo oasis
#

Yup, if your account is a Japanese Stripe account, then you would not be able to display it

#

There is a workaround, but it is quite complicated and requires more effort

proper flume
#

Wait a moment, I'm trying to display Bank Transfer.

#

'payment_method_types' => [
"card",
"sepa_debit"
],

So payment_method_types remains the same for bank transfer?

indigo oasis
#

You would have to specify additional fields according to this

indigo oasis
proper flume
#

If I remove payment_method_types, it shows many other options that my client doesn’t want.

indigo oasis
#

I see

indigo oasis
proper flume
#

My platform is in Japan.
So does the code need to be modified like this?
My currency can be from many countries.

earnest nightBOT
torpid storm
#

Hey! Taking over for my colleague. Let me catch up.

#

My currency can be from many countries.
The Checkout Session supports one currency at creation, then you can configure it to use automatic currency conversion

proper flume
# indigo oasis It can, but you would first need to create a Customer first (or use an existing ...

[mode] => payment
[locale] => auto
[success_url] => https://betav2.taku.com/payment/success
[cancel_url] => https://betav2.taku.com/payment/error
[payment_method_types] => Array
(
[0] => card
[1] => sepa_debit
[2] => customer_balance
)

[line_items] => Array
    (
        [0] => Array
            (
                [quantity] => 1
                [price_data] => Array
                    (
                        [currency] => eur
                        [unit_amount] => 1700
                        [product_data] => Array
                            (
                                [name] => Order ID QHV8ED1DRURT
                            )

                    )

            )

    )

[client_reference_id] => QHV8ED1DRURT
[metadata] => Array
    (
        [order_code] => QHV8ED1DRURT
    )

[payment_intent_data] => Array
    (
        [metadata] => Array
            (
                [order_code] => QHV8ED1DRURT
            )

    )

[customer] => cus_TPlKza8jKicz6B
[payment_method_options] => Array
    (
        [customer_balance] => Array
            (
                [funding_type] => bank_transfer
                [bank_transfer] => Array
                    (
                        [type] => jp_bank_transfer
                    )

            )

    )

QA: “I have already followed the instructions, however the bank transfer option is still not showing.”

torpid storm
#

Can you share the Checkout Session Id ?

torpid storm
#

Checking...

#

I'm suspecting that this is something with the adaptive prices

#

Can you try creating another Checkout Session by disabling the adaptive pricing ?

proper flume
#

“Which parameter should be modified?”

torpid storm
#

You should disbale the adaptive pricing from your Stripe Dashboard

#

and try creating another Checkout Session.

#

You need to uncheck this switch

proper flume
#

There are many international sellers besides Japan. Will that cause any issues?
Later on, will the Product also need to be disabled?

#

Ah, I would like to ask further:
How can I enable automatic tax in the checkout session?

torpid storm
earnest nightBOT
torpid storm
#

Wait let me try doing a quick tests...

remote lynx
#

Looks like Bank Transfers aren't enabled on the account's payment methods config? pmc_1QHigZKSVjwCWErTlOZKaHG3

earnest nightBOT
faint saddle
#

hey there, looking into this checkout session

proper flume
#
  1. I selected multiple different addresses for the tax calculation, but the tax is always zero.
  2. Also, the Bank Transfer option still isn’t showing.
remote lynx
proper flume
#

I want to enable automatic tax calculation in the checkout session.
Is this enough?

#

Or do I need to update the customer’s address first before automatic tax can work?

$customer = \Stripe\Customer::create([
'email' => 'example@gmail.com',
'address' => [
'line1' => '123 Street',
'city' => 'Tokyo',
'postal_code' => '100-0001',
'country' => 'JP'
]
]);

faint saddle
#

no, the configuration from your Checkout Session code is sufficient

#

checking into why tax wasn't calculated on your latest payments

#

I would recommend directing questions like this to our support team - Discord is intended for technical integration questions, but for general product questions, our support team are the most knowledgeable people to help