#marina_code

1 messages ยท Page 1 of 1 (latest)

grave eagleBOT
#

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

๐Ÿ“ 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.

lethal fulcrum
#

hey there! thanks for this example

#

to resolve this, the second link above provides two options to allow this card to be displayed

grave eagleBOT
polar ingot
#

I add payment_method_allow_redisplay_filters with array but it's now working.

sick plume
#

๐Ÿ‘‹ Hey, taking over here, just taking a look

#

Can you share the full snippet of code as you have it now?

polar ingot
#

$features = [
'payment_method_redisplay' => $showSavedPaymentMethods ? 'enabled' : 'disabled',
'payment_method_remove' => $showSavedPaymentMethods ? 'enabled' : 'disabled',
'payment_method_save' => $showSavedPaymentMethods ? 'enabled' : 'disabled',
'payment_method_allow_redisplay_filters' => ['always', 'limited', 'unspecified'],
];

    if ($features['payment_method_save'] === 'enabled') {
        $features['payment_method_save_usage'] = 'off_session';
    }

    $customerSessionParams = [
        'customer' => $customer->getCustomerId(),
        'components' => [
            'payment_element' => [
                'enabled' => true,
                'features' => $features
            ],
        ],
    ];

    try {
        $customerSession = $this->stripeClient->customerSessions->create($customerSessionParams);
sick plume
polar ingot
#

give me a sec to find it

#

req_WruAAyAw4sXFNk

sick plume
#

Looks like that's for a different customer than the original message. Which customer are you intending to use, and what payment methods are being shown, and what ones are you expecting to see but are not shown?