#sunny singh-automatic-pms

1 messages · Page 1 of 1 (latest)

vagrant oyster
#

Hey, you mean the types of payment method offered to your customer?

placid quarry
#

yes

#

on the based of customer location

vagrant oyster
#

Sure, we have an automatic payment methods feature which takes care of that

#

How are you integrating? Checkout?

placid quarry
#

i am using creating payment_method API

#

but dont have idea to for which is best method_type is best for your customer to pay money

vagrant oyster
#

I wouldn't recommend using that API directly. What are you trying to do?

placid quarry
#

i am creating the payment-intent

#

so need to payment method

vagrant oyster
placid quarry
#

can you give me the idea of any API fetch payment-method type on the location based?

#

is there any api in stripe?

vagrant oyster
#

There's no API for that, no

#

You'd use automatic payment methods as I explained

placid quarry
#

okay

#

thanks

#

can you explain one more thing

vagrant oyster
#

Sure..

placid quarry
#

const stripe = require('stripe')('');

const reportRun = await stripe.reporting.reportRuns.create({
report_type: 'balance.summary.1',
parameters: {
interval_start: 1522540800,
interval_end: 1525132800,
},
});

#

in this api

#

interval_start: 1522540800,
interval_end: 1525132800,

vagrant oyster
#

I'd remove your secret key

placid quarry
#

sure

#

in this api whats is the format of intervals?

vagrant oyster
#

It's a unix timestamp

placid quarry
#

okay