@amboras-dev/iyzico 0.2.0
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/index.d.mts +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +36 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session data returned by Amboras' multi-tenant iyzico Checkout Form
|
|
3
|
+
* provider. iyzico hosts the payment UI; storefronts navigate to
|
|
4
|
+
* `payment_page_url` and keep the token in the Medusa payment session for
|
|
5
|
+
* the authenticated CF-Retrieve call after iyzico redirects back.
|
|
6
|
+
*/
|
|
7
|
+
interface IyzicoSessionData {
|
|
8
|
+
iyzico_environment_id: string;
|
|
9
|
+
/** True until the storefront supplies iyzico's required buyer identity/tax number. */
|
|
10
|
+
requires_identity_number?: boolean;
|
|
11
|
+
iyzico_token?: string;
|
|
12
|
+
payment_page_url?: string;
|
|
13
|
+
conversation_id?: string;
|
|
14
|
+
basket_id?: string;
|
|
15
|
+
currency_code: IyzicoCurrency;
|
|
16
|
+
amount: string;
|
|
17
|
+
mode: 'sandbox' | 'live';
|
|
18
|
+
session_id?: string;
|
|
19
|
+
payment_id?: string;
|
|
20
|
+
payment_status?: 'SUCCESS' | 'FAILURE';
|
|
21
|
+
}
|
|
22
|
+
type IyzicoCurrency = 'TRY' | 'USD' | 'EUR' | 'GBP' | 'NOK' | 'CHF';
|
|
23
|
+
|
|
24
|
+
export type { IyzicoCurrency, IyzicoSessionData };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session data returned by Amboras' multi-tenant iyzico Checkout Form
|
|
3
|
+
* provider. iyzico hosts the payment UI; storefronts navigate to
|
|
4
|
+
* `payment_page_url` and keep the token in the Medusa payment session for
|
|
5
|
+
* the authenticated CF-Retrieve call after iyzico redirects back.
|
|
6
|
+
*/
|
|
7
|
+
interface IyzicoSessionData {
|
|
8
|
+
iyzico_environment_id: string;
|
|
9
|
+
/** True until the storefront supplies iyzico's required buyer identity/tax number. */
|
|
10
|
+
requires_identity_number?: boolean;
|
|
11
|
+
iyzico_token?: string;
|
|
12
|
+
payment_page_url?: string;
|
|
13
|
+
conversation_id?: string;
|
|
14
|
+
basket_id?: string;
|
|
15
|
+
currency_code: IyzicoCurrency;
|
|
16
|
+
amount: string;
|
|
17
|
+
mode: 'sandbox' | 'live';
|
|
18
|
+
session_id?: string;
|
|
19
|
+
payment_id?: string;
|
|
20
|
+
payment_status?: 'SUCCESS' | 'FAILURE';
|
|
21
|
+
}
|
|
22
|
+
type IyzicoCurrency = 'TRY' | 'USD' | 'EUR' | 'GBP' | 'NOK' | 'CHF';
|
|
23
|
+
|
|
24
|
+
export type { IyzicoCurrency, IyzicoSessionData };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/index.ts
|
|
17
|
+
var src_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(src_exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './types'\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@amboras-dev/iyzico",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "iyzico payment provider types for Amboras storefronts",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"react": ">=18"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/node": "^20.0.0",
|
|
25
|
+
"@types/react": "^18.0.0",
|
|
26
|
+
"tsup": "^8.0.0",
|
|
27
|
+
"typescript": "^5.0.0"
|
|
28
|
+
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsup",
|
|
34
|
+
"typecheck": "tsc --noEmit"
|
|
35
|
+
}
|
|
36
|
+
}
|