io.paymenthighway.formBuilders.AddCardParametersInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paymenthighway Show documentation
Show all versions of paymenthighway Show documentation
Payment Highway Java API Library
package io.paymenthighway.formBuilders;
import io.paymenthighway.FormContainer;
public interface AddCardParametersInterface {
/**
* Skip notifications displayed on the Payment Highway form
*
* @param skipFormNotifications Skip notifications displayed on the Payment Highway form.
* @return Form builder
*/
AddCardParametersInterface skipFormNotifications(Boolean skipFormNotifications);
/**
* Exit from iframe after a result
*
* @param exitIframeOnResult Exit from iframe after a result.
* @return Form builder
*/
AddCardParametersInterface exitIframeOnResult(Boolean exitIframeOnResult);
/**
* Exit from iframe when redirecting the user to 3DS.
*
* @param exitIframeOn3ds Exit from iframe when redirecting the user to 3DS.
* @return Form builder
*/
AddCardParametersInterface exitIframeOn3ds(Boolean exitIframeOn3ds);
/**
* Force enable/disable 3ds
*
* @param use3ds Force enable/disable 3ds.
* @return Form builder
*/
AddCardParametersInterface use3ds(Boolean use3ds);
/**
* Set PaymentHighway form language
*
* @param language Two character language code e.g. FI or EN. If omitted, default language from user's browser's settings is used.
* @return Form builder
*/
AddCardParametersInterface language(String language);
/**
* Get parameters for Add Card request with the possibility to accept cards that require CVC.
*
* @param acceptCvcRequired Accept a payment card token even if the card requires CVC for payments.
* @return AddCardParametersInterface
*/
AddCardParametersInterface acceptCvcRequired(Boolean acceptCvcRequired);
/**
* The URL the PH server makes request to after the transaction is handled. The payment itself may still be rejected.
*
* @param successUrl Webhook url to call when request is successfully handled
* @return Form builder
*/
AddCardParametersInterface webhookSuccessUrl(String successUrl);
/**
* The URL the PH server makes request to after a failure such as an authentication or connectivity error.
*
* @param failureUrl Webhook url to call when request failed
* @return Form builder
*/
AddCardParametersInterface webhookFailureUrl(String failureUrl);
/**
* The URL the PH server makes request to after cancelling the transaction (clicking on the cancel button).
*
* @param cancelUrl Webhook url to call when user cancels request
* @return Form builder
*/
AddCardParametersInterface webhookCancelUrl(String cancelUrl);
/**
* Delay for webhook in seconds. Between 0-900
*
* @param delay Webhook triggering delay in seconds
* @return Form builder
*/
AddCardParametersInterface webhookDelay(Integer delay);
/**
* Builds form parameters
*
* @return FormContainer
*/
FormContainer build();
}