@doujins/payments-ui 0.1.2 → 0.1.3
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.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -184,7 +184,7 @@ var createClient = (config) => {
|
|
|
184
184
|
async listPaymentMethods(params) {
|
|
185
185
|
const result = await request(
|
|
186
186
|
"GET",
|
|
187
|
-
"/me/payment-methods",
|
|
187
|
+
"/v1/me/payment-methods",
|
|
188
188
|
{
|
|
189
189
|
query: {
|
|
190
190
|
limit: params?.limit,
|
|
@@ -197,7 +197,7 @@ var createClient = (config) => {
|
|
|
197
197
|
return normalizeList(result);
|
|
198
198
|
},
|
|
199
199
|
createPaymentMethod(payload) {
|
|
200
|
-
return request("POST", "/me/payment-methods", {
|
|
200
|
+
return request("POST", "/v1/me/payment-methods", {
|
|
201
201
|
body: payload,
|
|
202
202
|
target: "account"
|
|
203
203
|
});
|
|
@@ -219,17 +219,17 @@ var createClient = (config) => {
|
|
|
219
219
|
});
|
|
220
220
|
},
|
|
221
221
|
checkout(payload) {
|
|
222
|
-
return request("POST", "/me/checkout", {
|
|
222
|
+
return request("POST", "/v1/me/checkout", {
|
|
223
223
|
body: payload
|
|
224
224
|
});
|
|
225
225
|
},
|
|
226
226
|
cancelSubscription(feedback) {
|
|
227
|
-
return request("POST", "/me/subscriptions/cancel", {
|
|
227
|
+
return request("POST", "/v1/me/subscriptions/cancel", {
|
|
228
228
|
body: feedback ? { feedback } : void 0
|
|
229
229
|
});
|
|
230
230
|
},
|
|
231
231
|
async getPaymentHistory(params) {
|
|
232
|
-
const result = await request("GET", "/me/payments", {
|
|
232
|
+
const result = await request("GET", "/v1/me/payments", {
|
|
233
233
|
query: {
|
|
234
234
|
limit: params?.limit,
|
|
235
235
|
offset: params?.offset,
|
|
@@ -241,7 +241,7 @@ var createClient = (config) => {
|
|
|
241
241
|
async getSolanaTokens() {
|
|
242
242
|
const response = await request(
|
|
243
243
|
"GET",
|
|
244
|
-
"/solana/tokens"
|
|
244
|
+
"/v1/solana/tokens"
|
|
245
245
|
);
|
|
246
246
|
if (Array.isArray(response)) {
|
|
247
247
|
return response;
|
|
@@ -249,7 +249,7 @@ var createClient = (config) => {
|
|
|
249
249
|
return response.tokens ?? [];
|
|
250
250
|
},
|
|
251
251
|
async createSolanaPayIntent(payload) {
|
|
252
|
-
const response = await request("POST", "/solana/pay", {
|
|
252
|
+
const response = await request("POST", "/v1/solana/pay", {
|
|
253
253
|
body: {
|
|
254
254
|
price_id: payload.priceId,
|
|
255
255
|
token: payload.token,
|