Skip to main content
Redirect the user to a transaction or coupon detail page. When both transactionId and couponId are provided, transactionId takes precedence.

Parameters

PropertyTypeRequiredDescription
transactionIdStringNoTransaction identifier
couponIdStringNoCoupon identifier
successFunctionNoCallback on success
failFunctionNoCallback on failure

Success Callback

PropertyTypeDescription
successBooleanQuery success status
resultCodeString0 success · 1000 invalid params · 1001 network error · 1002 internal error
resultMessageStringHuman-readable status message

Code Example

my.call('transDetail', {
  transactionId: 'TXN_001',
  success: (res) => {
    my.alert({ content: 'success: ' + JSON.stringify(res) });
  },
  fail: (error) => {
    my.alert({ content: 'error: ' + JSON.stringify(error) });
  }
});