cybersource-api
Version:
Module for connect with CyberSource by soap methods.
21 lines (17 loc) • 482 B
JavaScript
module.exports = class CaptureRequest {
constructor(merchantReferenceCode,authorization){
this.merchantReferenceCode = merchantReferenceCode;
this.ccCaptureService = {
attributes:{run:true},
authRequestID:authorization
}
}
getJSON(){
return {
merchantID:this.merchantID,
merchantReferenceCode:this.merchantReferenceCode,
purchaseTotals:this.purchaseTotals.getJSON(),
ccCaptureService: this.ccCaptureService
}
}
}