APIs Interface

SoftPOS SDK API Interface


Class SoftPOSSDK
MethodsData TypeMandatoryDescription
Constructors initialize(params)PGWSDKParamsMInit class constructor with PGW SDK params initialise.

• SDK constructor
• params: Refer to: Init PGW SDK
instanceSoftPOSSDKMSoftPOS SDK instance methods.
pay(request, response)PaymentRequest, PaymentResultResponseCallbackOPayment API method.

Request: Refer to Payment Request

Response: Refer to SoftPOS Payment Result Response
voidTransaction(request, response)PaymentRequest, PaymentResultResponseCallbackOVoid payment API method.

Request: Refer to Payment Request

Response: Refer to SoftPOS Payment Result Response

Payment Request


Class PaymentRequest
ParameterData TypeMandatoryDescription
Constructors (activity, paymentToken)Activity, StringMInit class constructor with Android activity and PGW paymentToken.

• SDK constructor
• activity: Android activity. Refer to: Activity
• paymentToken: retrieve from PGW Payment Token API. Refer to: Payment Token
profileIdStringMSoftPOS provider profile id.
transactionIdStringCSoftPOS provider transaction id.

Refer to: SoftPOS Result
posTypeSoftPOSTypeOSoftPOS device type.

Refer to: SoftPOS Type

SoftPOS Payment Result Response


Class SoftPOSPaymentResultResponse
ParameterData TypeMandatoryDescription
paymentTokenStringMPGW payment token.

Refer to: Payment Token
transactionStatusResponseTransactionStatusResponseMPGW transaction status inquiry response.

Refer to: Transaction Status Response API
resultSoftPOSResultMSoftPOS provider result.

Refer to: SoftPOS Result
responseCodeStringMAPI response code.

Refer to: SoftPOS Payment Response Code
responseDescriptionStringMAPI response description.

Refer to: SoftPOS Payment Response Code