digitaluapi

<back to all web services

PayFastWebHook

The following routes are available for this service:
POST/payfast/webhook/{PublicAccessGuid}
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


open class PayFastWebHook
{
    @DataMember(Name="m_payment_id")
    @SerializedName("m_payment_id")
    open var MPaymentId:String? = null

    @DataMember(Name="pf_payment_id")
    @SerializedName("pf_payment_id")
    open var PfPaymentId:String? = null

    @DataMember(Name="payment_status")
    @SerializedName("payment_status")
    open var PaymentStatus:String? = null

    @DataMember(Name="item_name")
    @SerializedName("item_name")
    open var ItemName:String? = null

    @DataMember(Name="item_description")
    @SerializedName("item_description")
    open var ItemDescription:String? = null

    @DataMember(Name="amount_gross")
    @SerializedName("amount_gross")
    open var AmountGross:Double? = null

    @DataMember(Name="amount_fee")
    @SerializedName("amount_fee")
    open var AmountFee:Double? = null

    @DataMember(Name="amount_net")
    @SerializedName("amount_net")
    open var AmountNet:Double? = null

    @DataMember(Name="custom_str1")
    @SerializedName("custom_str1")
    open var CustomStr1:String? = null

    @DataMember(Name="custom_str2")
    @SerializedName("custom_str2")
    open var CustomStr2:String? = null

    @DataMember(Name="custom_str3")
    @SerializedName("custom_str3")
    open var CustomStr3:String? = null

    @DataMember(Name="custom_str4")
    @SerializedName("custom_str4")
    open var CustomStr4:String? = null

    @DataMember(Name="custom_str5")
    @SerializedName("custom_str5")
    open var CustomStr5:String? = null

    @DataMember(Name="custom_int1")
    @SerializedName("custom_int1")
    open var CustomInt1:Int? = null

    @DataMember(Name="custom_int2")
    @SerializedName("custom_int2")
    open var CustomInt2:Int? = null

    @DataMember(Name="custom_int3")
    @SerializedName("custom_int3")
    open var CustomInt3:Int? = null

    @DataMember(Name="custom_int4")
    @SerializedName("custom_int4")
    open var CustomInt4:Int? = null

    @DataMember(Name="custom_int5")
    @SerializedName("custom_int5")
    open var CustomInt5:Int? = null

    @DataMember(Name="name_first")
    @SerializedName("name_first")
    open var NameFirst:String? = null

    @DataMember(Name="name_last")
    @SerializedName("name_last")
    open var NameLast:String? = null

    @DataMember(Name="email_address")
    @SerializedName("email_address")
    open var EmailAddress:String? = null

    @DataMember(Name="merchant_id")
    @SerializedName("merchant_id")
    open var MerchantId:String? = null

    @DataMember(Name="signature")
    @SerializedName("signature")
    open var Signature:String? = null

    @DataMember(Name="token")
    @SerializedName("token")
    open var Token:String? = null

    @DataMember(Name="billing_date")
    @SerializedName("billing_date")
    open var BillingDate:Date? = null

    open var PublicAccessGuid:UUID? = null
    open var Sandbox:Boolean? = null
}

Kotlin PayFastWebHook DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /payfast/webhook/{PublicAccessGuid} HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"m_payment_id":"String","pf_payment_id":"String","payment_status":"String","item_name":"String","item_description":"String","amount_gross":0,"amount_fee":0,"amount_net":0,"custom_str1":"String","custom_str2":"String","custom_str3":"String","custom_str4":"String","custom_str5":"String","custom_int1":0,"custom_int2":0,"custom_int3":0,"custom_int4":0,"custom_int5":0,"name_first":"String","name_last":"String","email_address":"String","merchant_id":"String","signature":"String","token":"String","billing_date":"0001-01-01T00:00:00.0000000","PublicAccessGuid":"00000000000000000000000000000000","Sandbox":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{}