@finteqhub/sdk-js 0.5.2 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/processing.js +1 -1
- package/dist/src/typings.d.ts +3 -3
- package/package.json +1 -1
package/dist/src/processing.js
CHANGED
|
@@ -44,7 +44,7 @@ export class FinteqHubProcessing {
|
|
|
44
44
|
submitForm(data) {
|
|
45
45
|
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
46
46
|
try {
|
|
47
|
-
const response = yield this.sendPost(`${this.apiUrl}/
|
|
47
|
+
const response = yield this.sendPost(`${this.apiUrl}/v1/transactions/submit-form`, data);
|
|
48
48
|
const result = yield response.json();
|
|
49
49
|
if (result.error || response.status !== 200) {
|
|
50
50
|
reject(new Error(result.error));
|
package/dist/src/typings.d.ts
CHANGED
|
@@ -114,17 +114,17 @@ export declare type SubmitData = {
|
|
|
114
114
|
};
|
|
115
115
|
payer: Payer;
|
|
116
116
|
};
|
|
117
|
-
|
|
117
|
+
paymentMethod: string;
|
|
118
118
|
} | {
|
|
119
119
|
credentials: {
|
|
120
120
|
billingAddress: Address;
|
|
121
121
|
card: Card;
|
|
122
122
|
payer: Payer;
|
|
123
123
|
};
|
|
124
|
-
|
|
124
|
+
paymentMethod: string;
|
|
125
125
|
} | {
|
|
126
126
|
credentials: Record<string, string>;
|
|
127
|
-
|
|
127
|
+
paymentMethod: string;
|
|
128
128
|
};
|
|
129
129
|
export declare type ProcessOperationRedirectResponse = {
|
|
130
130
|
type: "redirect";
|