We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d83963 commit 9db331dCopy full SHA for 9db331d
generator/cybersource-javascript-template/ApiClient.mustache
@@ -526,7 +526,9 @@
526
if (httpMethod.toLowerCase() === this.constants.POST
527
|| httpMethod.toLowerCase() === this.constants.PATCH
528
|| httpMethod.toLowerCase() === this.constants.PUT) {
529
- bodyParam = JSON.stringify(bodyParam, null, 0);
+ if (body !== "{}") {
530
+ bodyParam = JSON.stringify(bodyParam, null, 0);
531
+ }
532
}
533
534
if (this.merchantConfig.getAuthenticationType().toLowerCase() !== this.constants.MUTUAL_AUTH)
0 commit comments