#oliver_best-practices

1 messages ยท Page 1 of 1 (latest)

wintry emberBOT
#

๐Ÿ‘‹ 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.

hazy marsh
#

๐Ÿ‘‹ happy to help

daring hill
#

is the 3d secure thing going to continue to happen? or will is subside after a few payments ?

hazy marsh
#

I'm not sure I understand what do you mean with ads?

daring hill
#

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
hazy marsh
#

any reason why you're not creating this as a subscription?

daring hill
#

I assumed a subscription would be based off a specific time period (ie payments every month)

hazy marsh
#

it could be a period of 1 day

#

or 2 days

daring hill
#

thats true, I could just hold a balance of the user. do you think this will improve the 3d secure issue I'm having

hazy marsh
#

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

daring hill
#

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?

hazy marsh
#

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

wintry emberBOT