#MaheshWaman-Bacs
1 messages · Page 1 of 1 (latest)
We are not angular and firebase expert, but we can try to help in API requests if you have any
to do integration bacs transtion I need to navigate on stripe url or I need to do design in front end
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?
for API how we can get account number for that user
@stoic tiger We have a Doc on BACS: https://stripe.com/docs/payments/bacs-debit/accept-a-payment
I think you would want to adapt the frontend part to Angular and the backend part to Firebase
yes right
cc @wind jasper please create a new message on channel and we can support you in a separated thread
@stoic tiger Let me know if you have any specific Qs
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
Sure, that's a Checkout Session with supports BACS payments
Have you managed to create a Checkout Session yet?
I have query in this how I can manage this can you explaing me about this
What specifically? If you're starting out with Checkout, you should start here: https://stripe.com/docs/checkout/quickstart
Will help you understand the concepts of creating a Session and redirecting users to it
yes need help about how redirecting user to it than I want to know
Can you share the code you have now in the front-end?
I have done only API things
can you share the code you wrote for those things?
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
and how/where do you call this bacsDebitPayment function and use the return value?
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
that seems reasonable enough. What happens on the frontend when you call that /bacspayment route? can you share that code?
give me some time I will share code