#Randomuser2022

1 messages · Page 1 of 1 (latest)

ocean fulcrumBOT
zenith lava
#

What Stripe product are you using ? Stripe Elements ?

molten sandal
#

someone told me that when creating a Paymentlntent, we should contain "automatic_payment_methods[[enabled]"=true??

zenith lava
#

That's an API reference, can you share the guide link ?

#

You are using Stripe Element ?

molten sandal
zenith lava
#

Google/Apple Pay will be displayed

#

when you have a valid card in your (Google/Apple) wallet and your website is being loaded over https.

molten sandal
zenith lava
#

You need to have a valid card in your wallet

molten sandal
#

ooh when i finish, they shall show up i guess?

#

and how about Affirm

zenith lava
molten sandal
#

But on the dashboard, Affirm is only eligible🤨 don't know what goes wrong

zenith lava
#

You need to register/complete activating these payment methods if your account is eligible to use that kind of PaymentMethods

molten sandal
#

you mean add to integration?

zenith lava
#

yes, once it's activated, the Affirm PaymentMethod will be displayed in your Elements Integration.

molten sandal
#

thanks, mate! I'll have a try!

#

do i need to follow pre-build check out package or direct API?

zenith lava
molten sandal
#

we conclude this in the script, still don't have Affirm payments

zenith lava
#

Can you share a PaymentIntent Id you are using ?

ocean fulcrumBOT
molten sandal
#

{
"id": "evt_3NAPu1EydrSRkIrF1vurty9I",
"object": "event",
"api_version": "2022-11-15",
"created": 1684727961,
"data": {
"object": {
"id": "pi_3NAPu1EydrSRkIrF1in9Meza",
"object": "payment_intent",
"amount": 6500,
"amount_capturable": 0,
"amount_details": {
"tip": {
}
},
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"client_secret": "pi_3NAPu1EydrSRkIrF1in9Meza_secret_QuZfdcTZUuTcQIJS0LyBJRzwT",
"confirmation_method": "automatic",
"created": 1684727961,
"currency": "usd",
"customer": null,
"description": null,
"invoice": null,
"last_payment_error": null,
"latest_charge": null,
"livemode": false,
"metadata": {
"sfid": "a237h000000ZXBhAAO"
},
"next_action": null,
"on_behalf_of": null,
"payment_method": null,
"payment_method_options": {
"card": {
"installments": null,
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],
"processing": null,
"receipt_email": null,
"review": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "requires_payment_method",
"transfer_data": null,
"transfer_group": null
}
},
"livemode": false,
"pending_webhooks": 1,
"request": {
"id": "req_ekNjPwLtzYYXnJ",
"idempotency_key": "80fe4e2b-44e7-4176-85d5-bf316959fa78"
},
"type": "payment_intent.created"
}

#

"id": "pi_3NAPu1EydrSRkIrF1in9Meza"

zenith lava
#

thanks for sharing, checking...

#

Create another PaymentIntent

molten sandal
molten sandal
zenith lava
#

You created that payment_intent before or after activating Affirm ,

molten sandal
molten sandal
zenith lava
zenith lava
molten sandal
#

so i have to active it first and then set automatic_payment_methods:true?

zenith lava
#

yes

molten sandal
#

where could i set up the activation?

zenith lava
#

Let me check your account once again...

molten sandal
#

do i need to provide login info?

zenith lava
#

nope

molten sandal
#

ok thanks!

zenith lava
#

Can you create another PaymentIntent please and check if Affirm is displayed in your Element integration ?

#

share with me that PaymentIntent Id and a screenshot of your integration

molten sandal
#

do i need to add this in my code (automatic_payment_methods:true) before create another inten?

zenith lava
#

yes please

molten sandal
#

we edit the code but don't know why it still the same

#

{
"id": "evt_3NAVrdEydrSRkIrF1SWMoYPu",
"object": "event",
"api_version": "2022-11-15",
"created": 1684750877,
"data": {
"object": {
"id": "pi_3NAVrdEydrSRkIrF1X9T9Xks",
"object": "payment_intent",
"amount": 6500,
"amount_capturable": 0,
"amount_details": {
"tip": {
}
},
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"client_secret": "pi_3NAVrdEydrSRkIrF1X9T9Xks_secret_a3pgN1Te8WaLwuX8wMGmkvpTg",
"confirmation_method": "automatic",
"created": 1684750877,
"currency": "usd",
"customer": null,
"description": null,
"invoice": null,
"last_payment_error": null,
"latest_charge": null,
"livemode": false,
"metadata": {
"sfid": "a237h000000ZXFZAA4"
},
"next_action": null,
"on_behalf_of": null,
"payment_method": null,
"payment_method_options": {
"card": {
"installments": null,
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],
"processing": null,
"receipt_email": null,
"review": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "requires_payment_method",
"transfer_data": null,
"transfer_group": null
}
},
"livemode": false,
"pending_webhooks": 3,
"request": {
"id": "req_5qa9snlGlE1f6q",
"idempotency_key": "86ab54aa-13fc-4e70-a313-46ccbf187e37"
},
"type": "payment_intent.created"
}

zenith lava
#

You are not passing

automatic_payment_methods:{
enabled: true
}
When creating the PaymentIntent

molten sandal
#

amount=6500&currency=USD&metadata[sfid]=a237h000000ZXFZAA4&payment_method_types=null&automatic_payment_methods=true

#

not working

#

amount=6500&currency=USD&metadata[sfid]=a237h000000ZXFyAAO&automatic_payment_methods=true

zenith lava
#

remove payment_method_types

molten sandal
zenith lava
#

Check the documentation:

molten sandal
#

remove already

molten sandal
#

ok thanks!!!!

#

it works!

#

you're wonderful!