#linups_api

1 messages ยท Page 1 of 1 (latest)

primal graniteBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

odd grail
#

300 is the regular price?

sinful sun
#

yes

odd grail
#

Gotcha

#

Ok so you could either use a Subscription Schedule for this or discount the second month via something like a negative amount invoice item

#

Or use another coupon

#

Remove the previous one and set a new one

#

After first invoice is paid

sinful sun
#

Subscription schedule sounds better.

#

but i can use subscription schedule only after user authorized his first payment?

odd grail
#

Correct

#

You'd have to attach the subscription to the schedule after

sinful sun
#

thank you. another question: is there a way to hide that part ? and have only credit card section?

#

i use stripe embed.

odd grail
#

Not with embedded checkout. You'd have to switch to Elements + Checkout Sessions

sinful sun
#

thank you. let me check it.

#

IF we stick with embed option... in stripe documentation, product image is big... But in our caret it is very small. I do not find, how to increase image size?

odd grail
#

Hm good question. I'm not sure off-hand. The one difference I notice between the example and yours is the product description

#

So maybe try with a product that doesn't have a description but does have an image

sinful sun
#

no.... same thing....

#

stripe example also do not have product name...

#

but it is required..

odd grail
#

It does have a name

#

"Pure set"

sinful sun
#

oh, yes, i see it... but still looks, that part of layout is different.

odd grail
#

Yeah also the example is not using adaptive pricing but you are

sinful sun
#

what do you mean? that product has a single price.

odd grail
#

The toggle at the top to choose the currency in your screenshot

#

That's adaptive pricing

sinful sun
#

that is what i wanted to ask. how to disable it

odd grail
#

Oh you didn't mention that. You said just show credit card section

#

So the only thing you want to disable is adaptive pricing?

sinful sun
#

and make that image big ๐Ÿ™‚

#

bigger

#

[
'ui_mode' => 'embedded',
'line_items' => [[
# Provide the exact Price ID (e.g. price_1234) of the product you want to sell
'price' => 'price_1Q5TlF2WxmpWlx1MRXeoy7bJ',
'quantity' => 1,
]],
'mode' => 'payment',
'customer_creation' => 'always',
'currency' => 'usd',
'return_url' => 'https://dev-funnels.brittanywatkins.com/stripe/return.php?session_id={CHECKOUT_SESSION_ID}&version='.time(),
'automatic_tax' => [
'enabled' => false,
],
'payment_intent_data' => [
// Save the payment method for future charges
// 'on_session' = reuse while customer is present (e.g., in-app)
// 'off_session' = reuse later without customer present (MIT)
'setup_future_usage' => 'off_session',

    // Optional extras:
    'description' => 'item_description',
    'metadata' => ['order_id' => 'ORD-10025'],
],
'phone_number_collection' => ['enabled' => true],

]

#

this is my callback.

odd grail
#

You can turn off adaptive pricing in your dashboard settings

#

I'm not sure if that makes image bigger off-hand but you can try ^ first

#

Then create a new checkout session

sinful sun
#

yes it makes bigger... well styling is not perfect... but i dont think we can change it.

odd grail
#

Cool

#

Yeah you can't customize styling

sinful sun
#

oh... one more thing... for example when you make purchase and get redirected to the next page. if you click back in the browser, it returns back to the cart, but imediately it throws an error....

#

i guess, because it is calling same checkout...

#

is there a way to avoid it?

odd grail
#

That would be because you attempt to visit the checkout session url of a checkout session that's already been completed

#

You can't really avoid that

#

As you cannot view a checkout session that's been completed

sinful sun
#

is there a way always start new one ?

odd grail
#

Not by just visiting an old checkout session url

#

You could use javascript to alter the session history and make it so pressing the back button goes to a page on your site and then create a new checkout session and redirect to it