gatewayCallbackPost
Callback operation
The server will post a callback to the partner's callback URL, upon a successful/failed transaction. The server will post up to three times unless the callback responds "ACK" without any other text. # Signature The signature is calculated by using the SHA256 algorithm with the following input: amount+currency+type+txStatus+partnerTxId+merchantTxId+accessId+accessSecret Note: Remove the thousands separator and the decimal point in the amount before generating signature Example: <br /> amount: 100.00 <br /> currency: MYR <br /> type: PAYIN <br /> txStatus: SUCCESS <br /> partnerTxId: 123 <br /> merchantTxId: abc456 <br /> accessId: abc123 <br /> accessSecret: secret123 <br /> signature: <br /> SHA256(10000MYRPAYINSUCCESS123abc456abc123secret123) <br /> Please make sure the signature is correct before proceding.
/gateway/callback
Usage and SDK Samples
curl -X POST\
-H "Content-Type: application/json"\
"//gateway/callback"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GatewayApi;
import java.io.File;
import java.util.*;
public class GatewayApiExample {
public static void main(String[] args) {
GatewayApi apiInstance = new GatewayApi();
Gateway_callback_body body = ; // Gateway_callback_body |
try {
apiInstance.gatewayCallbackPost(body);
} catch (ApiException e) {
System.err.println("Exception when calling GatewayApi#gatewayCallbackPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.GatewayApi;
public class GatewayApiExample {
public static void main(String[] args) {
GatewayApi apiInstance = new GatewayApi();
Gateway_callback_body body = ; // Gateway_callback_body |
try {
apiInstance.gatewayCallbackPost(body);
} catch (ApiException e) {
System.err.println("Exception when calling GatewayApi#gatewayCallbackPost");
e.printStackTrace();
}
}
}
Gateway_callback_body *body = ; // (optional)
GatewayApi *apiInstance = [[GatewayApi alloc] init];
// Callback operation
[apiInstance gatewayCallbackPostWith:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var PayversaApiIntegrationDocumentation = require('payversa_api_integration_documentation');
var api = new PayversaApiIntegrationDocumentation.GatewayApi()
var opts = {
'body': // {{Gateway_callback_body}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.gatewayCallbackPost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class gatewayCallbackPostExample
{
public void main()
{
var apiInstance = new GatewayApi();
var body = new Gateway_callback_body(); // Gateway_callback_body | (optional)
try
{
// Callback operation
apiInstance.gatewayCallbackPost(body);
}
catch (Exception e)
{
Debug.Print("Exception when calling GatewayApi.gatewayCallbackPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiGatewayApi();
$body = ; // Gateway_callback_body |
try {
$api_instance->gatewayCallbackPost($body);
} catch (Exception $e) {
echo 'Exception when calling GatewayApi->gatewayCallbackPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GatewayApi;
my $api_instance = WWW::SwaggerClient::GatewayApi->new();
my $body = WWW::SwaggerClient::Object::Gateway_callback_body->new(); # Gateway_callback_body |
eval {
$api_instance->gatewayCallbackPost(body => $body);
};
if ($@) {
warn "Exception when calling GatewayApi->gatewayCallbackPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.GatewayApi()
body = # Gateway_callback_body | (optional)
try:
# Callback operation
api_instance.gateway_callback_post(body=body)
except ApiException as e:
print("Exception when calling GatewayApi->gatewayCallbackPost: %s\n" % e)
Parameters
Name | Description |
---|---|
body |