#DJ-create-a-pm

1 messages · Page 1 of 1 (latest)

broken rivet
#

Hello 👋
What's the actual use-case? i.e. Are you trying to save them for later use?

vast oxide
#

No we're not using them for later-use. We're currently storing the credit card information and are looking to create the payment method (Blik in this case) and then after charge it using the PaymentIntent API.

#

Historically speaking my team is used to using the Sources API

#

now we're looking into adding Blik support and was hoping there was source documentation for Blik. But that's not the case, and it appears we need to create this using the PaymentMethod + PaymentIntent API.

broken rivet
#

ah okay
let me take a look

vast oxide
#
payment_method = Stripe::PaymentMethod.create({
  type: 'blik',
  owner: {
    email: '',
  },
})

payment_intent = Stripe::PaymentIntent.create(
  amount: 100,
  currency: 'PLN',
  payment_method: payment_method
)
#

This is a contrived example of what I think we'd like to do.

#

I did take a look at that documentation. But this makes the assumption that you're using the StripeJS library. Which this isn't something we're using.

#

We're doing everything natively via the Stripe API (ruby gem).

broken rivet
#

huh okay, typically we recommend using PaymentIntent or SetupIntent API along with Stripe.js to handle this use-case for compliance reasons.
let me see if we have any docs on this