#oliver_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1294230040472453191
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
I don't use a subscription for this, and use invoices with charge_automatically. If the user's payments failed, we send them a link to the stripe hosted 3ds secure payment portal. The issue with this, is that we have to turn the ads off while the user is performing the 3d secure payment thing, which is the issue Im having.
is the 3d secure thing going to continue to happen? or will is subside after a few payments ?
I'm not sure I understand what do you mean with ads?
so the payments are for continous use of advertisments that require daily payments to pay for. and we charge the franchisees based off the performance of the ads.
ie we charge a franchisee every 3 leads they get from a advertisment, so this means that after every 3 leads from an advertisment, we create an automatic invoice, with collection_method='charge_automatically', auto_advance=True
but since the payments are requesting the franchisee to confirm the payment, we are sort of forced to turn the advertisments off while the franchisee is completing it
which isn't great, as we need the advertisments running 24/7
stripe.InvoiceItem.create(
customer=customer,
amount=1500 * 3,
currency='GBP',
description='3 Residential Leads',
invoice=invoice.id
)
finalized_invoice = stripe.Invoice.finalize_invoice(invoice.id, auto_advance=True)```
mode="payment",
payment_method_types=["card"],
customer=customer,
payment_intent_data={
'setup_future_usage': 'off_session',
},
success_url="",
cancel_url="",
line_items=[
{
'price_data': {
'currency': 'gbp',
'product_data': {
'name': '3 Lead Generation',
},
'unit_amount': amount * 100,
},
'quantity': 1,
},
],
)```
and this is for the first payment
any reason why you're not creating this as a subscription?
I assumed a subscription would be based off a specific time period (ie payments every month)
thats true, I could just hold a balance of the user. do you think this will improve the 3d secure issue I'm having
not necessarily
since you're getting a payment on a ~ ~daily basis, at some point the bank will eventually ask for 3DS sooner or later
depending on the regulations of the country and upon the discretion of the bank
I can't really see much information surrounding the flags the banks use, are they mostly hidden?
ie does it make more sense to have the payment on a set date, everytime?
will a change in payment price be more likely to trigger it?
will a bank automatically approve of payments, if the user has done a 3DS secure, lets say for the past 4 payments?
I can't really see much information surrounding the flags the banks use, are they mostly hidden?
yes that's what upon their discretion means ๐
will a change in payment price be more likely to trigger it?
no not necessarily
ie does it make more sense to have the payment on a set date, everytime?
yes I think it's better for example to do monthly payments, or weekly ones to reduce the number of card payment
or you can use only direct debits as a payment method to reduce SCA