#nmbdev-PI-affirm

1 messages ยท Page 1 of 1 (latest)

naive dew
#

Hello ๐Ÿ‘‹
Can you share the PaymentIntent ID here?

gusty yacht
#

pi_3LD7YGI32BdD5R321YcZGKr1

naive dew
#

have you enabled affirm as a payment method already?

gusty yacht
#

i'm in dev mode

#

in stripe

naive dew
#

Gotcha. Give me a moment

gusty yacht
#

๐Ÿ˜€

gusty yacht
#

any luck?

naive dew
#

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']```?
gusty yacht
#

ok, just give a moment

#

ok, so right now I have:

#
automatic_payment_methods: {
    enabled: "true"
  }
```
hollow iris
#

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']

gusty yacht
#

yes, what I'm testing now... just a second

#

nop, always same error msg

hollow iris
#

Can you share the request id?

gusty yacht
#

sorry my delay, I can see it in stripe dashboard?

gusty yacht
#

found it

#

missing affirm

#

should be this right?

#

I will try to add this

hollow iris
#

Yeah make sure you are passing in affirm

gusty yacht
#

big thanks

past widget
#

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

upbeat swallow
#

@gusty yacht Do you have an example request id we can look at?

gusty yacht
#
{
  "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"
}
upbeat swallow
#

so what's your question?

gusty yacht
#

why I have this error msg:

upbeat swallow
#

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

#

@gusty yacht does that make sense?

timid flint
#

๐Ÿ‘‹ happy to help

#

let's continue the discussion here

#

if you need any more help @gusty yacht

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