#mitsu_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/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.
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
Hmm have you tried the testing identity
The verification part
For the prev question, lets rely on PMC in Dashboard and not explicitly specify payment_method_types
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
Could you try this section of our docs > download the "verified image" > upload it to this page here.
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?
In order to setup these payment methods in test mode:
-
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
-
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
SEPA direct debit => OK
'payment_method_types' => [
"card",
"sepa_debit"
],
How should I modify this to be able to display bank transfer?
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.
Can’t it be displayed on the checkout session screen?
It can, but you would first need to create a Customer first (or use an existing Customer) and pass the ID into the Customer field when creating checkout sessions
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-customer
Once you have done so, the checkout session would have this option here
@proper flume Were you able to get it to show?
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
So does that mean it cannot be displayed on the Japan platform?
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
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?
Another alternative is to remove
'payment_method_types' => [ "card", "sepa_debit" ],
As mentioned before
If I remove payment_method_types, it shows many other options that my client doesn’t want.
I see
ok, then you should follow this example here
My platform is in Japan.
So does the code need to be modified like this?
My currency can be from many countries.
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
The feature is called Adaptive prices:
https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing
[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.”
Can you share the Checkout Session Id ?
Checking...
I'm suspecting that this is something with the adaptive prices
Can you try creating another Checkout Session by disabling the adaptive pricing ?
“Which parameter should be modified?”
You should disbale the adaptive pricing from your Stripe Dashboard
and try creating another Checkout Session.
You need to uncheck this switch
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?
Yeah, probably you should to use between accepting bank transfer and having adaptive pricing if that's the case
Wait let me try doing a quick tests...
Looks like Bank Transfers aren't enabled on the account's payment methods config? pmc_1QHigZKSVjwCWErTlOZKaHG3
hey there, looking into this checkout session
- I selected multiple different addresses for the tax calculation, but the tax is always zero.
- Also, the Bank Transfer option still isn’t showing.
You can't do EUR payments with Bank Transfers as a JP merchant: https://docs.stripe.com/payments/bank-transfers#bank-transfer-methods
What about the tax?
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'
]
]);
no, the configuration from your Checkout Session code is sufficient
checking into why tax wasn't calculated on your latest payments
looks like tax wasn't calculated because you haven't added a tax registration for the location used during checkout: https://docs.stripe.com/tax/registering
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