Search Results for

    Show / Hide Table of Contents

    Class RedirectMoneyInMerchant

    This is one of the templates available for creating a custom money in merchant. With this merchant, when a customer places an order, they will be redirected to another site defined in PaymentResponse.RedirectURL where they will complete the payment.

    Inheritance
    System.Object
    MoneyInMerchant
    RedirectMoneyInMerchant
    Inherited Members
    MoneyInMerchant.ValidateCurrency(String)
    MoneyInMerchant.ValidatePayment(String, NewPayment)
    MoneyInMerchant.RefundPayment(String, Int32, String, Double, Double, String, String, String)
    MoneyInMerchant.GetNewPayerId(Int32)
    Namespace: DirectScale.Disco.Extension
    Assembly: DirectScale.Disco.Extension.Abstractions.dll
    Syntax
    public abstract class RedirectMoneyInMerchant : MoneyInMerchant
    Remarks

    Implement this merchant to create a custom merchant that forward the customers to the merchant's site to complete an order. This is done if the merchant can't process the payment as two separate steps (tokenize card, then charge card) and instead needs to control the full payment process. After the customer hits submit order, the order will be created in a pending state until they have completed the payment. Normally, after the payment is completed from the merchant's site, the merchant will then call a provided custom API endpoint to send the results of the attempted payment.

    Constructors

    RedirectMoneyInMerchant()

    Declaration
    protected RedirectMoneyInMerchant()

    Methods

    RedirectPayment(Int32, Int32, Address, Double, String, String)

    Process a payment by redirecting the customer to another site.

    Declaration
    public abstract Task<PaymentRedirectResult> RedirectPayment(int associateId, int orderNumber, Address billingAddress, double amount, string currencyCode, string returnUrl)
    Parameters
    Type Name Description
    System.Int32 associateId

    The associate placing the order.

    System.Int32 orderNumber

    The order number being charged.

    Address billingAddress

    The associate's billing address.

    System.Double amount

    The amount to be charged.

    System.String currencyCode

    The currency being used.

    System.String returnUrl
    Returns
    Type Description
    System.Threading.Tasks.Task<PaymentRedirectResult>

    PaymentResponse are the results of the payment.

    Remarks

    For this merchant, PaymentResponse.Status should be set to Pending while the redirect occurs. PaymentResponse.Redirect should be set to true, and PaymentResponse.RedirectURL must be set to the 3rd party merchant's payment page.

    See Also

    PaymentResponse
    SavedPaymentMoneyInMerchant
    SinglePaymentMoneyInMerchant
    In This Article
    Back to top Copyright © 2022 DirectScale
    Generated by DocFX