PaySecure Pinless Web Services 2023:07:03:07

<back to all web services

WebHookRequest

The following routes are available for this service:
POST/PayWithBankWebHook
import Foundation
import ServiceStack

public class WebHookRequest : Codable
{
    // @DataMember
    public var authorization:String

    // @DataMember
    public var merchantId:String

    // @DataMember
    public var merchantReference:String

    // @DataMember
    public var paymentType:String

    // @DataMember
    public var transactionType:String

    // @DataMember
    public var eventId:String

    // @DataMember
    public var eventType:String

    // @DataMember
    public var objectId:String

    // @DataMember
    public var objectType:String

    // @DataMember
    public var message:String

    // @DataMember
    public var parentObjectId:String

    // @DataMember
    public var timeZone:String

    // @DataMember
    public var createdAt:String

    // @DataMember
    public var accessId:String

    // @DataMember
    public var transactionId:String

    // @DataMember
    public var errorCode:String

    // @DataMember
    public var splitToken:String

    // @DataMember
    public var requestSignature:String

    // @DataMember
    public var formData:String

    // @DataMember
    public var status:String

    // @DataMember
    public var paymentProviderTransactionstatus:String

    // @DataMember
    public var paymentProviderTransactionstatusMessage:String

    // @DataMember
    public var thirdPartyDeclineCode:String

    required public init(){}
}


Swift WebHookRequest DTOs

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

HTTP + CSV

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

POST /PayWithBankWebHook HTTP/1.1 
Host: api.paysecure.acculynk.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Authorization":"String","merchantId":"String","merchantReference":"String","paymentType":"String","transactionType":"String","eventId":"String","eventType":"String","objectId":"String","objectType":"String","message":"String","parentObjectId":"String","timeZone":"String","createdAt":"String","accessId":"String","transactionId":"String","errorCode":"String","splitToken":"String","requestSignature":"String","formData":"String","status":"String","paymentProviderTransactionstatus":"String","paymentProviderTransactionstatusMessage":"String","thirdPartyDeclineCode":"String"}