public TransactionResponse SubmitSecondaryTransaction(string transactionId, SecondaryTransaction payload, string storeId = null, string region = null) { Signature signatureService = GetSignatureService(); string messageSignature = signatureService.Sign(JsonConvert.SerializeObject(payload)); return(payApi.SubmitSecondaryTransaction( CONTENT_TYPE, signatureService.ClientRequestId, GetApiKey(), signatureService.TimeStamp, transactionId, payload, messageSignature, region, storeId )); }
public async Task <TransactionResponse> SubmitSecondaryTransactionFromOrderAsync(string orderId, SecondaryTransaction payload, string region = null) { Signature signatureService = GetSignatureService(); string messageSignature = signatureService.Sign(JsonConvert.SerializeObject(payload)); return(await orderApi.SubmitSecondaryTransactionFromOrderAsync( CONTENT_TYPE, signatureService.ClientRequestId, GetApiKey(), signatureService.TimeStamp, orderId, payload, messageSignature, region )); }