#Rahul Maru
1 messages · Page 1 of 1 (latest)
Hi
Blik is supported on mobile payment
https://stripe.com/docs/payments/payment-methods/integration-options#support-bank-redirects
Can you share the payment_intent Id ?
no i am using stripe elements and in that we are using blik we want to see blik inside stripe elements
right now we want to use it in the mobile payment elements
Yes you mean Stripe PaymentSheet
Can you share the PayementIntent that you are doing the tests with ?
ok sure wait
{
"message" : "Successful",
"data" : {
"clientSecret" : "pi_3OZYPBHUrndEUSYd0sRdw2TF_secret_DS5KbPcuXQ2FGMUc8Y8OSjYIz",
"ephemeralKey" : "ephkey_1OZYPBHUrndEUSYdHBkBE5sZ",
"ephemeralSecret" : "ek_test_YWNjdF8xTmZVUGNIVXJuZEVVU1lkLE5HT3B0MUREN0NGeWZaamlqdFM1S2V1S0pPUXEyMng_00FKjoBEUq",
"customer" : "cus_POGQpYQAagq4d2",
"publicKey" : "pk_test_51NfUPcHUrndEUSYd4E9FBM0G2CL2WgRejRImsNcGh0IxJ2r5Pcku45FePJyfugKOJCvZFimUTOEDhJyFnEw388Jl00kqLfE93P"
}
}
Thanks let me check!
"id": "pi_3OZYHxHUrndEUSYd0K9MLrEs",
You've provided setup_future_usage: on_session which is not supported for blik
You need to remove it
in order to have Blik option
but we have card option as well in which we need this
if i pass off_session will it work
@polar dagger because we need this
we have a multiple payment options in the stripe
Blik doens't support on_session future usage.
You need to update your integration accordingly
what if we use off_session it will work @polar dagger
Yes it should
if not share with me the resulting new Paymentintent and we'll double check this together
ok wait give me 5 mins
"id": "pi_3OZYdWHUrndEUSYd1spUq6yu",
{
"message" : "Successful",
"data" : {
"clientSecret" : "pi_3OZYdWHUrndEUSYd1spUq6yu_secret_5UAVS6ItfkjewUlcNI53oMld1",
"ephemeralKey" : "ephkey_1OZYdVHUrndEUSYdDAPuySRH",
"ephemeralSecret" : "ek_test_YWNjdF8xTmZVUGNIVXJuZEVVU1lkLFBvRVU4T1NiOW9FVlZ4VmFGS0Z6RU5XSDc3UGhYOEM_008j58AlPO",
"customer" : "cus_POGQpYQAagq4d2",
"publicKey" : "pk_test_51NfUPcHUrndEUSYd4E9FBM0G2CL2WgRejRImsNcGh0IxJ2r5Pcku45FePJyfugKOJCvZFimUTOEDhJyFnEw388Jl00kqLfE93P"
}
}
@polar dagger
Thanks, let me check...
Ok I see, you simply need to remove setup_future_usage
Blik isn't supported for Subscription mode:
https://stripe.com/docs/payments/payment-methods/integration-options#support-bank-redirects
but i have told you we have card payment option as well and we need it for future usage what we can do about that
elements opens all the payment methods at once
so how we can manage it
card we want it for future usage
You'd use the p_m_o hash and specify s_f_u just for card or other PMs that support it: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card-setup_future_usage
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
setup_future_usage. I just sent you the API reference for the parameter(s)
let me check
automatic_payment_methods: { enabled: true }
and
payment_method_options.card.setup_future_usage
can we use both together
stripe.paymentIntents.create
in this
@true sky @polar dagger
Yep!
wait let me test
Did it work?
I'm going to go ahead and close this thread now, but we'll be back in a couple hours if you've any follow-up questions!
what we need to put in blik code for testing
in stripe elements
this is the last question only
Nothing really, it should just be there assuing the payment meets the critera
What's the pi_xxx ID?
"id": "pi_3OZZ4EHUrndEUSYd0OMTkTJo",
{
"message" : "Successful",
"data" : {
"clientSecret" : "pi_3OZZ4EHUrndEUSYd0OMTkTJo_secret_KyMKGKzz2Dk5IKfruX5yTRXWn",
"ephemeralKey" : "ephkey_1OZZ4DHUrndEUSYdi8cAnu7h",
"ephemeralSecret" : "ek_test_YWNjdF8xTmZVUGNIVXJuZEVVU1lkLEl6enlJUm0xMGVjeVZRdm9wd2tZbnpJUDV0UzIxQUY_00tMGGNe3r",
"customer" : "cus_POGQpYQAagq4d2",
"publicKey" : "pk_test_51NfUPcHUrndEUSYd4E9FBM0G2CL2WgRejRImsNcGh0IxJ2r5Pcku45FePJyfugKOJCvZFimUTOEDhJyFnEw388Jl00kqLfE93P"
}
}
com.stripe:stripe-android:20.36.1
Oh, it is there. What's the question exactly?
See: https://stripe.com/docs/payments/blik/accept-a-payment?platform=web&ui=checkout#test-integration
You just enter any 6 digit code
what we need to put the blik code for testing