#MaheshWaman-Bacs

1 messages · Page 1 of 1 (latest)

dim dome
#

We are not angular and firebase expert, but we can try to help in API requests if you have any

stoic tiger
#

to do integration bacs transtion I need to navigate on stripe url or I need to do design in front end

wind jasper
#

Hi,

If I need to make a payment instantly and need to authenticate at that moment itself, do I need to set confirm=true in payment Intent?

#

Also, what I need to give if I am making the payment via cron and authentication is out of scope?

stoic tiger
#

for API how we can get account number for that user

dim dome
#

I think you would want to adapt the frontend part to Angular and the backend part to Firebase

stoic tiger
#

yes right

dim dome
#

cc @wind jasper please create a new message on channel and we can support you in a separated thread

hard saddle
#

@stoic tiger Let me know if you have any specific Qs

stoic tiger
#

this screen I need to make in frontend but I am seeing url the url prsent stripcheckout
is possible achive this, if it possible then how i can achive this

hard saddle
#

Sure, that's a Checkout Session with supports BACS payments

#

Have you managed to create a Checkout Session yet?

stoic tiger
#

I have query in this how I can manage this can you explaing me about this

hard saddle
#

Will help you understand the concepts of creating a Session and redirecting users to it

stoic tiger
#

yes need help about how redirecting user to it than I want to know

hard saddle
#

Can you share the code you have now in the front-end?

stoic tiger
#

I have done only API things

tropic bluff
#

can you share the code you wrote for those things?

stoic tiger
#

export async function bacsDebitPayment(
PRICE_ID: string,
customerId: string
) {
try{
const session = await stripe.checkout.sessions.create({
payment_method_types: ['bacs_debit'],
line_items: [{
price: PRICE_ID,
quantity: 1,
}],
mode: 'payment',
customer: customerId,
payment_intent_data: {
setup_future_usage: 'off_session',
},
success_url: 'https://localhost:5000/dashboard/success?session_id={CHECKOUT_SESSION_ID}',
cancel_url: 'https://localhost:5000/dashboard/cancel',
});
return session;
}
catch(err){
return err
}

}

#

this code I have write for API

tropic bluff
#

and how/where do you call this bacsDebitPayment function and use the return value?

stoic tiger
#

app.post("/bacspayment", async (req, res) => {
let bacsPaymentRes;
const priceId = req.body.price;
const customerId = req.body.customerId;
bacsPaymentRes = await helpers.bacsDebitPayment(
priceId,
customerId
);
return res.status(200).json(bacsPaymentRes);
});

#

this is API call

#

in this call I am not passing account number , bank name

#

any one please help me on this

tropic bluff
#

that seems reasonable enough. What happens on the frontend when you call that /bacspayment route? can you share that code?

stoic tiger
#

give me some time I will share code