#vincent_api

1 messages · Page 1 of 1 (latest)

winged oarBOT
#

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

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

verbal nest
#

I talk of the merchant name displayed here

bleak gull
#

Hi, let me help you with this.

#

ISCA Livres is the merchant name?

verbal nest
#

yes (the wrong one)

#

correct one should be DFFY CH

bleak gull
#

I am not sure how this is possible since the accounts are not even linked.

#

Could you please share a live website where I can reproduce the issue?

verbal nest
#

the only link between both account is that I manage both account ID (acct_1FiiTcdrjahS and
acct_1F7hus
MCxc) from my Stripe account

#

tell me if you want I create an account for you on the shop you could use test user
vincent+434412332@dffy.ch
Pass : Diyo6k1d7w

I would delete this test user after

bleak gull
#

The page doesn't seem to work for me - I see "Mode maintenance" message

verbal nest
#

oh sorry. should be ok now

bleak gull
#

I feel like it might actually be a bug, but a very weird one.

#

I assume you're creating the PayementIntent on the backend when you click on the Twint button, right?
Could you please share the code that handles this request?

winged oarBOT
verbal nest
#
    {
        $invoiceAddress = new Address((int) $cart->id_address_invoice);
        $country = new Country($invoiceAddress->id_country);

        return $this->startRedirectPaymentFlow($cart, 'twint',
            [
                'billing_details' => [
                    'name' => Utils::getCustomerName($cart),
                ]
            ]
        );
    } ```
#
        Cart $cart,
        string $stripeMethod,
        array $paymentMethodData
    ): ExecutionResult
    {
        try {
            $paymentMethodData['type'] = $stripeMethod;
            $paymentIntent = $this->getStripeApi()->createPaymentIntent(
                $cart,
                $stripeMethod,
                $paymentMethodData,
                Utils::getValidationUrl($this->getMethodId())
            );

            $redirectUrl = Utils::extractRedirectUrl($paymentIntent);
            if ($redirectUrl) {
                $metadata = PaymentMetadata::createForPaymentIntent($this->getMethodId(), $cart, $paymentIntent);
                return ExecutionResult::redirect($metadata, $redirectUrl);
            } else {
                return ExecutionResult::error("Stripe response does not contain redirect url");
            }
        } catch (ApiErrorException $e) {
            return $this->handleApiException($e);
        }
    }
jagged rapids
#

hi! I'm taking over this thread. give me a few minutes to catchup.

verbal nest
#
GitHub

Stripe payment module. Contribute to dffych/thirtybees_stripe development by creating an account on GitHub.

GitHub

Stripe payment module. Contribute to dffych/thirtybees_stripe development by creating an account on GitHub.

GitHub

Stripe payment module. Contribute to dffych/thirtybees_stripe development by creating an account on GitHub.

jagged rapids
#

Thanks for the detailed information.

#

I think this would require some deeper investigation. So can you open a ticket, where you summarize the issue? And we'll look into it.

winged oarBOT
#

Hello @verbal nest, we have sent you a direct message, please check it at https://discord.com/channels/@me/1333801453462229174

  • 🔗The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
verbal nest
#

OK thanks @jagged rapids and @bleak gull for your first investigations. I open the ticket from my Stripe account

jagged rapids
#

Perfect, thanks! We'll look into it.