Ingenico-ePayments / connect-sdk-dotnet

Ingenico Connect .NET Server SDK
https://docs.connect.worldline-solutions.com/documentation/sdk/server/dotnet/
MIT License
33 stars 16 forks source link

Remove/Disable Remember me checkbox for future reference #14

Closed syedsaadabbasi closed 1 year ago

syedsaadabbasi commented 1 year ago

image

Hello

Is there bit or option available to remove or disable this remember me checkbox using Ingenico Connect SDK ??

rikvanthof commented 1 year ago

You can disable the 'Remember my details...' option for any variant of the MyCheckout hosted payment pages using the MyCheckout Editor. By logging into the configuration center you can enter the MyCheckout Editor by navigating to the Look and feel menu option. Once in the editor you will find the option to disable (or enable) the 'Remember my details...' option in the Content styling block in the left navigation by unchecking the Remember Me option. Remember me option

syedsaadabbasi commented 1 year ago

Thanks @rikvanthof for quick response.

I need to make it configurable based on condition, I can create multiple template pages with this feature on and off, however is there any method or properties available in SDK, where I can configure this ??

rob-spoor commented 1 year ago

The API itself, and therefore also the SDK, does not support configuring this flag. However, you can create two (or more) look & feels (variants) - with and without the setting @rikvanthof mentioned. You can specify the variant to use through nested property HostedCheckoutSpecificInput.Variant of the CreateHostedCheckoutRequest.

From Create hosted check - payload:

Description

Using the Configuration Center it is possible to create multiple variations of your MyCheckout payment pages. By specifying a specific variant you can force the use of another variant then the default. This allows you to test out the effect of certain changes to your MyCheckout payment pages in a controlled manner. Please note that you need to specify the ID of the variant.

syedsaadabbasi commented 1 year ago

Thank you @rob-spoor for confirmation (y)

rob-spoor commented 1 year ago

You're welcome.

syedsaadabbasi commented 1 year ago

@rob-spoor @rikvanthof

Any thoughts why I can't see this Remember Me checkbox under Content Styling ??

image

rikvanthof commented 1 year ago

I had to check myself as well. The content styling is depended on the content that is being shown on the page you are looking at in the editor. This means that the option only shows up if you are editing the page of a payment product that allows the details to be remembered. You can select one of the card products in the View menu in the first top right dropdown. Once the payment product page is selected the 'Remember me' option will appear in the 'Content styling' menu in the left navigation.

Select Visa

syedsaadabbasi commented 1 year ago

Okay fair enough and on which field that payment selection is dependent, I can't see these options as well.

image

is there any document available to customize template other then this https://epayments.developer-ingenico.com/documentation/hosted-payment-pages/

rikvanthof commented 1 year ago

Hmm, that looks a bit strange. I see the payment products on the underlying page, so this shows that they are available on your account. Which environment (sandbox, preproduction or production) are you seeing this and what is your merchantId? I'll try to dig a bit deeper to see why these products are not showing up for you in that menu.

syedsaadabbasi commented 1 year ago

@rikvanthof any luck what could be the issue ??

syedsaadabbasi commented 1 year ago

Worldline has created a ticket for this issue, there is issue with the Merchant that I am using, they are working on it.