Search Results for

    Show / Hide Table of Contents

    Class SinglePaymentMoneyInMerchant

    This is one of the templates available for creating a custom money in merchant. Use this merchant to process payments without saved payment data.

    Inheritance
    System.Object
    MoneyInMerchant
    SinglePaymentMoneyInMerchant
    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 SinglePaymentMoneyInMerchant : MoneyInMerchant
    Remarks

    Since payment methods haven't been saved, like it would be in SavedPaymentMoneyInMerchant, this merchant will need to be able to process the payment with just the associate information provided. Paying with Reward Points is one example of this kind of merchant. This merchant can also be used in a similar way to RedirectMoneyInMerchant, for example, ChargePayment(String, Int32, Double, Address, String) could return the Status as Pending and trigger an email to be sent to the customer with detail on how to complete the order.

    Constructors

    SinglePaymentMoneyInMerchant()

    Declaration
    protected SinglePaymentMoneyInMerchant()

    Methods

    ChargePayment(String, Int32, Double, Address, String)

    Override this method to send a payment for processing to a custom integrated merchant.

    Declaration
    public abstract Task<PaymentResponse> ChargePayment(string payerId, int orderNumber, double amount, Address billingAddress, string currencyCode)
    Parameters
    Type Name Description
    System.String payerId

    The payer (or associate) placing the order. See GetNewPayerId(Int32) for details.

    System.Int32 orderNumber

    The order number being placed.

    System.Double amount

    The amount to be charged.

    Address billingAddress

    The associate's billing address.

    System.String currencyCode

    The currency being used.

    Returns
    Type Description
    System.Threading.Tasks.Task<PaymentResponse>

    The result of the payment.

    See Also

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