#Alex from Fuxam

1 messages · Page 1 of 1 (latest)

autumn mossBOT
dark bronze
#

Hello! How are you currently using the PaymentElement? Are you specifying options (like amount, currency, mode, etc) when initializing Elements or are you giving a client_secret?

loud cloak
#

I'm giving a client_secret

dark bronze
#

👍 Can you share an example Intent that's only showing card?

loud cloak
#

yes one second

#

{
id: 'pi_3NC33AEwHpTUe8W700wSDIvU',
object: 'payment_intent',
amount: 12936000,
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_3NC33AEwHpTUe8W700wSDIvU_secret_C7knUQkZp4r90tyx1UUp5djqz',
confirmation_method: 'automatic',
created: 1685116772,
currency: 'eur',
customer: 'cus_Nxz0IEZcpjYkuG',
description: 'Subscription creation',
invoice: 'in_1NC339EwHpTUe8W7E9dwyBiL',
last_payment_error: null,
latest_charge: null,
livemode: false,
metadata: {},
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: 'powerful@mailsac.com',
review: null,
setup_future_usage: 'off_session',
shipping: null,
source: null,
statement_descriptor: null,
statement_descriptor_suffix: null,
status: 'requires_payment_method',
transfer_data: null,
transfer_group: null
}

#

I see that it's only adding the card as payment method type

#

I dont manually create the payment intent though, I just create a subscription and then get the paymentIntent from it

#

and it inconsistently adds the other payment method types like paypal and sepa to it

dark bronze
#

It's because the amount for that payment intent is fairly large, so it exceeds the allowed limits for paypal and sepa

#

So we automatically remove those since you can't use them to successfully complete the intent

loud cloak
#

Ohhh i see

#

Okay got it, is there any way to increase limits for sepa?