#lucas-soares_api

1 messages ¡ Page 1 of 1 (latest)

versed elkBOT
#

👋 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/1341396572147023972

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

lucid venture
chilly night
#

Ok thanks

Does this conversion apply to discounts too?

lucid venture
#

Yes it's applied to the amount due

chilly night
#

Ok, nice

#

Can you clear my doubt?
I activated the adaptive pricing option at checkout. But do I need to configure something when I create the payment link? pass any parameters?

#

Currently I look like this:

const sessionParams = {
          mode: 'subscription',
          customer: customer.id,
          line_items: [
            {
              price: priceId,
              quantity: 1
            },
          ],
          success_url: `${url_Current}/#/plans?success=true`,
          cancel_url: `${url_Current}/#/plans`,
          ...(discounts.length > 0 ? { discounts: discounts } : {}),
          ...(allowPromotionCodes ? { allow_promotion_codes: true } : {}),
          subscription_data: {
            trial_settings: {
              end_behavior: {
                missing_payment_method: 'cancel',
              },
            },
            trial_period_days: 7,
          }
        };
lucid venture
versed elkBOT
chilly night
#

I activated it in a test environment, and generated it with an email with the location PT. But he didn't convert:

cloud belfry
#

Hi taking over here. Looking

chilly night
#

Ok, thanks

cloud belfry
chilly night
#

No, Brazil BRL is South America. It seems like there is

cloud belfry
#

Ah apologies

#

Yes you're right

#

Hm can you share the checkout session id?

chilly night
#

Yeah, not problem

#

cs_test_b1PkmyXl1QceIwgblyY1Uw0Se5AGPI71MD4yipMFkCvhtflpAOOz9l5YaC

#

If you need I can send the link

#

I am creating a client with this email with the location.
And when I create the checkout I pass the customer_id

cloud belfry
#

Oh

#

It's because it's a subscription mode checkout session

chilly night
#

ohh no

#

that's right

#

I think I'll have to create a separate price for another currency.

And I would pass the price Id depending on the customer's region, I will need to do this for discounts too...

cloud belfry
#

Yes unfortunately that's what you'll need to do in this case

chilly night
#

Yeah

#

I'm going to talk to my boss and our client.
Thank you for your attention!