Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Samples/FlexMicroform/generate-capture-context-accept-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ function generate_capture_context_accept_card(callback) {
}
else if (data) {
console.log('\nData : ' + JSON.stringify(data));
cybersourceRestApi.CaptureContextParsingUtility.parseCaptureContextResponse(data, apiClient.merchantConfig, true, function (err, result) {
if (err) {
console.log('\nError in Capture Context Parsing : ' + JSON.stringify(err));
} else {
console.log('\nParsed Capture Context : ' + JSON.stringify(result));
}
});
}

console.log('\nResponse : ' + JSON.stringify(response));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ function generate_capture_context_accept_check(callback) {
}
else if (data) {
console.log('\nData : ' + JSON.stringify(data));
cybersourceRestApi.CaptureContextParsingUtility.parseCaptureContextResponse(data, apiClient.merchantConfig, true, function (err, result) {
if (err) {
console.log('\nError in Capture Context Parsing : ' + JSON.stringify(err));
} else {
console.log('\nParsed Capture Context : ' + JSON.stringify(result));
}
});
}

console.log('\nResponse : ' + JSON.stringify(response));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ function generate_capture_context_for_click_to_pay_dropin_ui(callback) {
}
else if (data) {
console.log('\nData : ' + JSON.stringify(data));
cybersourceRestApi.CaptureContextParsingUtility.parseCaptureContextResponse(data, apiClient.merchantConfig, true, function (err, result) {
if (err) {
console.log('\nError in Capture Context Parsing : ' + JSON.stringify(err));
} else {
console.log('\nParsed Capture Context : ' + JSON.stringify(result));
}
});
}

console.log('\nResponse : ' + JSON.stringify(response));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ function generate_unified_checkout_capture_context_passing_billing_shipping(call
}
else if (data) {
console.log('\nData : ' + JSON.stringify(data));
cybersourceRestApi.CaptureContextParsingUtility.parseCaptureContextResponse(data, apiClient.merchantConfig, true, function (err, result) {
if (err) {
console.log('\nError in Capture Context Parsing : ' + JSON.stringify(err));
} else {
console.log('\nParsed Capture Context : ' + JSON.stringify(result));
}
});
}

console.log('\nResponse : ' + JSON.stringify(response));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ function generate_unified_checkout_capture_context(callback) {
}
else if (data) {
console.log('\nData : ' + JSON.stringify(data));
cybersourceRestApi.CaptureContextParsingUtility.parseCaptureContextResponse(data, apiClient.merchantConfig, true, function (err, result) {
if (err) {
console.log('\nError in Capture Context Parsing : ' + JSON.stringify(err));
} else {
console.log('\nParsed Capture Context : ' + JSON.stringify(result));
}
});
}

console.log('\nResponse : ' + JSON.stringify(response));
Expand Down