#nmbdev-PI-affirm
1 messages ยท Page 1 of 1 (latest)
pi_3LD7YGI32BdD5R321YcZGKr1
have you enabled affirm as a payment method already?
Gotcha. Give me a moment
๐
any luck?
still looking for the reason why it defaults to
"card",
"klarna"
],```
can you try taking out
enabled: "true"
}```
and adding
```payment_method_types: ['card','klarna','affirm']```?
ok, just give a moment
ok, so right now I have:
automatic_payment_methods: {
enabled: "true"
}
```
Hi taking over here. Give me a moment to catch up
Can you try what my colleague suggested? In your request, can you take out that part:
enabled: "true"
}```
And instead use:
payment_method_types: ['card','klarna','affirm']
Can you share the request id?
sorry my delay, I can see it in stripe dashboard?
Yeah make sure you are passing in affirm
big thanks
reopened your thread!
Copying your latest message here: "If you see, module does uses "automatic_payment_methods" parameter to create payment intent which automatically include all supported Payment options for that currency.
So you should ask it from Stripe support that why it's not added automatically in their requests."
@gusty yacht Do you have an example request id we can look at?
{
"client_secret": "pi_3LD81QI32BdD5R3222WQOEo0_secret_rJNqxarJujU58iq4XYxxLKvv4",
"expected_payment_method_type": "affirm",
"key": "pk_test_fzT51bVB2ATPAC4YUdYn51KH",
"payment_method_data[billing_details][address][city]": "Truckee",
"payment_method_data[billing_details][address][country]": "US",
"payment_method_data[billing_details][address][line1]": "11253 Brockway Road",
"payment_method_data[billing_details][address][line2]": "",
"payment_method_data[billing_details][address][postal_code]": "96161",
"payment_method_data[billing_details][address][state]": "California",
"payment_method_data[billing_details][email]": "noble.text3597@mail.com",
"payment_method_data[billing_details][name]": "test test test",
"payment_method_data[guid]": "71a03492-25ee-448a-1111-30685d8b65879def18",
"payment_method_data[muid]": "56b9a579-7c52-45fc-1111-6995cb2d4d45504dc8",
"payment_method_data[payment_user_agent]": "stripe.js/653c2107b; stripe-js-v3/653c2107b",
"payment_method_data[sid]": "2f9e82dc-6697-41da-8e23-01132ef9df94eb3557",
"payment_method_data[time_on_page]": "10718",
"payment_method_data[type]": "affirm",
"return_url": "http://www.localhost.loc/module/stripejs/validation?content_only=1"
}
so what's your question?
How are you building your own integration? I thought you were using a third-party system last time based on your earlier messages.
look at this, this is you changing the Price/currency, and then you get payment_method_types: [ "card", "afterpay_clearpay", "klarna" ],
this tells you what is available, Affirm is not there
https://stripe.com/docs/payments/affirm#payment-options says Affirm has a minimum amount of $50, but your amount is $41.22 so Affirm is not enabled
@gusty yacht does that make sense?
๐ happy to help
let's continue the discussion here
if you need any more help @gusty yacht
๐ when I return, the half conversation was already archived, this why i need create another msg
concerning the important of the conversation
I will notify the developers
to somehow see not to display this payment method when amount is less then 50
so more the moment all good @timid flint