@siglume/direct-request-payment 0.4.7 → 0.4.9
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/CHANGELOG.md +21 -0
- package/README.md +36 -32
- package/dist/index.cjs +124 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +51 -2
- package/dist/index.d.ts +51 -2
- package/dist/index.js +124 -1
- package/dist/index.js.map +1 -1
- package/docs/announcement-ja.md +1 -1
- package/docs/api-reference.md +41 -13
- package/docs/merchant-quickstart.md +69 -61
- package/examples/express-checkout.ts +32 -22
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,11 @@ declare const DIRECT_REQUEST_PAYMENT_RECEIPT_KIND = "sdrp_direct_payment";
|
|
|
6
6
|
declare const DIRECT_REQUEST_PAYMENT_ALLOWANCE_RECEIPT_KIND = "sdrp_direct_payment_allowance";
|
|
7
7
|
declare const DIRECT_REQUEST_PAYMENT_REFERENCE_TYPE = "sdrp_direct_payment_requirement";
|
|
8
8
|
declare const DEFAULT_WEBHOOK_TOLERANCE_SECONDS = 300;
|
|
9
|
-
declare const DIRECT_REQUEST_PAYMENT_SDK_VERSION = "0.4.
|
|
9
|
+
declare const DIRECT_REQUEST_PAYMENT_SDK_VERSION = "0.4.9";
|
|
10
|
+
declare const DIRECT_REQUEST_PAYMENT_STANDARD_SETTLED_STATUS = "settled";
|
|
11
|
+
declare const DIRECT_REQUEST_PAYMENT_METERED_ACCEPTED_STATUS = "pending_settlement";
|
|
12
|
+
declare const DIRECT_REQUEST_PAYMENT_STANDARD_FINALITY = "per_payment_onchain";
|
|
13
|
+
declare const DIRECT_REQUEST_PAYMENT_METERED_FINALITY = "aggregated_onchain_settlement";
|
|
10
14
|
type DirectRequestPaymentCurrency = "JPY" | "USD";
|
|
11
15
|
type DirectRequestPaymentToken = "JPYC" | "USDC";
|
|
12
16
|
type DirectRequestPaymentMeteredPlanType = "micro" | "nano";
|
|
@@ -411,6 +415,50 @@ interface DirectRequestPaymentWebhookEvent {
|
|
|
411
415
|
};
|
|
412
416
|
[key: string]: unknown;
|
|
413
417
|
}
|
|
418
|
+
type DirectPaymentConfirmationKind = "standard_settled" | "metered_usage_accepted" | "metered_batch_settled" | "unknown";
|
|
419
|
+
type DirectPaymentConfirmationUnknownReason = "not_direct_payment_confirmed" | "invalid_metered_settlement_confirmation" | "missing_standard_settlement_fields" | "missing_metered_usage_fields" | "unknown_confirmation_shape";
|
|
420
|
+
interface DirectPaymentStandardSettledClassification {
|
|
421
|
+
kind: "standard_settled";
|
|
422
|
+
event: DirectRequestPaymentWebhookEvent;
|
|
423
|
+
data: DirectRequestPaymentWebhookEvent["data"];
|
|
424
|
+
requirement_id: string;
|
|
425
|
+
challenge_hash: string;
|
|
426
|
+
chain_receipt_id: string;
|
|
427
|
+
request_hash_v2?: string | null;
|
|
428
|
+
}
|
|
429
|
+
interface DirectPaymentMeteredUsageAcceptedClassification {
|
|
430
|
+
kind: "metered_usage_accepted";
|
|
431
|
+
event: DirectRequestPaymentWebhookEvent;
|
|
432
|
+
data: DirectRequestPaymentWebhookEvent["data"];
|
|
433
|
+
pricing_band: DirectRequestPaymentMeteredPlanType;
|
|
434
|
+
requirement_id: string;
|
|
435
|
+
challenge_hash: string;
|
|
436
|
+
request_hash_v2?: string | null;
|
|
437
|
+
}
|
|
438
|
+
interface DirectPaymentMeteredBatchSettledClassification {
|
|
439
|
+
kind: "metered_batch_settled";
|
|
440
|
+
event: DirectRequestPaymentWebhookEvent;
|
|
441
|
+
data: DirectRequestPaymentWebhookEvent["data"];
|
|
442
|
+
pricing_band: DirectRequestPaymentMeteredPlanType;
|
|
443
|
+
settlement_cadence: "weekly" | "monthly";
|
|
444
|
+
settlement_batch_id: string;
|
|
445
|
+
chain_receipt_id: string;
|
|
446
|
+
usage_event_digest: string;
|
|
447
|
+
settled_at?: string | null;
|
|
448
|
+
}
|
|
449
|
+
interface DirectPaymentUnknownClassification {
|
|
450
|
+
kind: "unknown";
|
|
451
|
+
event: DirectRequestPaymentWebhookEvent;
|
|
452
|
+
data: DirectRequestPaymentWebhookEvent["data"];
|
|
453
|
+
reason: DirectPaymentConfirmationUnknownReason;
|
|
454
|
+
requirement_id?: string | null;
|
|
455
|
+
settlement_batch_id?: string | null;
|
|
456
|
+
pricing_band?: string | null;
|
|
457
|
+
settlement_cadence?: string | null;
|
|
458
|
+
settlement_status?: string | null;
|
|
459
|
+
finality?: string | null;
|
|
460
|
+
}
|
|
461
|
+
type DirectPaymentConfirmationClassification = DirectPaymentStandardSettledClassification | DirectPaymentMeteredUsageAcceptedClassification | DirectPaymentMeteredBatchSettledClassification | DirectPaymentUnknownClassification;
|
|
414
462
|
declare class SiglumeDirectRequestPaymentError extends Error {
|
|
415
463
|
constructor(message: string);
|
|
416
464
|
}
|
|
@@ -562,6 +610,7 @@ declare function verifyWebhookSignature(signing_secret: string, body: Uint8Array
|
|
|
562
610
|
now?: number;
|
|
563
611
|
}): Promise<WebhookSignatureVerification>;
|
|
564
612
|
declare function parseDirectRequestPaymentWebhookEvent(payload: unknown): DirectRequestPaymentWebhookEvent;
|
|
613
|
+
declare function classifyDirectPaymentConfirmation(event: DirectRequestPaymentWebhookEvent): DirectPaymentConfirmationClassification;
|
|
565
614
|
declare function verifyDirectRequestPaymentWebhook(signing_secret: string, body: Uint8Array | ArrayBuffer | string | Record<string, unknown>, signature_header: string, options?: {
|
|
566
615
|
tolerance_seconds?: number;
|
|
567
616
|
now?: number;
|
|
@@ -574,4 +623,4 @@ declare const verifyExternal402Challenge: typeof verifyDirectRequestPaymentChall
|
|
|
574
623
|
declare const createExternal402RecurringChallenge: typeof createDirectRequestPaymentRecurringChallenge;
|
|
575
624
|
declare const verifyExternal402RecurringChallenge: typeof verifyDirectRequestPaymentRecurringChallenge;
|
|
576
625
|
|
|
577
|
-
export { DEFAULT_SIGLUME_API_BASE, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, DIRECT_REQUEST_PAYMENT_ALLOWANCE_RECEIPT_KIND, DIRECT_REQUEST_PAYMENT_CHALLENGE_SCHEME, DIRECT_REQUEST_PAYMENT_MODE, DIRECT_REQUEST_PAYMENT_RECEIPT_KIND, DIRECT_REQUEST_PAYMENT_RECURRING_CHALLENGE_SCHEME, DIRECT_REQUEST_PAYMENT_REFERENCE_TYPE, DIRECT_REQUEST_PAYMENT_SDK_VERSION, type DirectPaymentRequirement, type DirectPaymentRequirementCreateInput, type DirectPaymentVerifyInput, type DirectRequestPaymentBillingPlan, type DirectRequestPaymentBuyerMeteredQuery, type DirectRequestPaymentBuyerMeteredSummary, type DirectRequestPaymentBuyerUsageEvent, type DirectRequestPaymentChallenge, type DirectRequestPaymentChallengeInput, type DirectRequestPaymentCheckoutSetupInput, type DirectRequestPaymentCheckoutSetupResult, DirectRequestPaymentClient, type DirectRequestPaymentClientOptions, type DirectRequestPaymentCurrency, type DirectRequestPaymentListResponse, type DirectRequestPaymentMerchantAccount, type DirectRequestPaymentMerchantBillingMandateInput, DirectRequestPaymentMerchantClient, type DirectRequestPaymentMerchantResponse, type DirectRequestPaymentMerchantSetupInput, type DirectRequestPaymentMeteredListQuery, type DirectRequestPaymentMeteredPlanType, type DirectRequestPaymentMinorAmount, type DirectRequestPaymentProviderMeteredListQuery, type DirectRequestPaymentProviderMeteredQuery, type DirectRequestPaymentProviderMeteredSummary, type DirectRequestPaymentProviderUsageEvent, type DirectRequestPaymentRecurringCadence, type DirectRequestPaymentRecurringChallenge, type DirectRequestPaymentRecurringChallengeInput, type DirectRequestPaymentSettlementBatch, type DirectRequestPaymentToken, type DirectRequestPaymentWebhookEvent, type DirectRequestPaymentWebhookSubscription, type DirectRequestPaymentWebhookSubscriptionInput, HostedCheckoutNotAvailableError, type HostedCheckoutSession, type HostedCheckoutSessionCreateInput, type HostedCheckoutSessionCreateResult, type ParsedDirectRequestPaymentChallenge, SiglumeApiError, SiglumeDirectRequestPaymentError, type SiglumeEnvelopeMeta, SiglumeWebhookPayloadError, SiglumeWebhookSignatureError, type Web3PreparedTransactionExecutePayload, type Web3PreparedTransactionExecuteResult, type Web3TransactionRequest, type WebhookSignatureVerification, buildAllowanceExecutionPayload, buildPaymentExecutionPayload, buildPreparedTransactionExecutionPayload, buildWebhookSignatureHeader, computeWebhookSignature, createDirectRequestPaymentChallenge, createDirectRequestPaymentChallengeSignature, createDirectRequestPaymentRecurringChallenge, createDirectRequestPaymentRecurringChallengeSignature, createExternal402Challenge, createExternal402RecurringChallenge, directRequestPaymentChallengeHash, directRequestPaymentRequestHash, directRequestPaymentRequestHashV2, parseDirectRequestPaymentChallenge, parseDirectRequestPaymentWebhookEvent, verifyDirectRequestPaymentChallenge, verifyDirectRequestPaymentRecurringChallenge, verifyDirectRequestPaymentWebhook, verifyExternal402Challenge, verifyExternal402RecurringChallenge, verifyWebhookSignature };
|
|
626
|
+
export { DEFAULT_SIGLUME_API_BASE, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, DIRECT_REQUEST_PAYMENT_ALLOWANCE_RECEIPT_KIND, DIRECT_REQUEST_PAYMENT_CHALLENGE_SCHEME, DIRECT_REQUEST_PAYMENT_METERED_ACCEPTED_STATUS, DIRECT_REQUEST_PAYMENT_METERED_FINALITY, DIRECT_REQUEST_PAYMENT_MODE, DIRECT_REQUEST_PAYMENT_RECEIPT_KIND, DIRECT_REQUEST_PAYMENT_RECURRING_CHALLENGE_SCHEME, DIRECT_REQUEST_PAYMENT_REFERENCE_TYPE, DIRECT_REQUEST_PAYMENT_SDK_VERSION, DIRECT_REQUEST_PAYMENT_STANDARD_FINALITY, DIRECT_REQUEST_PAYMENT_STANDARD_SETTLED_STATUS, type DirectPaymentConfirmationClassification, type DirectPaymentConfirmationKind, type DirectPaymentConfirmationUnknownReason, type DirectPaymentMeteredBatchSettledClassification, type DirectPaymentMeteredUsageAcceptedClassification, type DirectPaymentRequirement, type DirectPaymentRequirementCreateInput, type DirectPaymentStandardSettledClassification, type DirectPaymentUnknownClassification, type DirectPaymentVerifyInput, type DirectRequestPaymentBillingPlan, type DirectRequestPaymentBuyerMeteredQuery, type DirectRequestPaymentBuyerMeteredSummary, type DirectRequestPaymentBuyerUsageEvent, type DirectRequestPaymentChallenge, type DirectRequestPaymentChallengeInput, type DirectRequestPaymentCheckoutSetupInput, type DirectRequestPaymentCheckoutSetupResult, DirectRequestPaymentClient, type DirectRequestPaymentClientOptions, type DirectRequestPaymentCurrency, type DirectRequestPaymentListResponse, type DirectRequestPaymentMerchantAccount, type DirectRequestPaymentMerchantBillingMandateInput, DirectRequestPaymentMerchantClient, type DirectRequestPaymentMerchantResponse, type DirectRequestPaymentMerchantSetupInput, type DirectRequestPaymentMeteredListQuery, type DirectRequestPaymentMeteredPlanType, type DirectRequestPaymentMinorAmount, type DirectRequestPaymentProviderMeteredListQuery, type DirectRequestPaymentProviderMeteredQuery, type DirectRequestPaymentProviderMeteredSummary, type DirectRequestPaymentProviderUsageEvent, type DirectRequestPaymentRecurringCadence, type DirectRequestPaymentRecurringChallenge, type DirectRequestPaymentRecurringChallengeInput, type DirectRequestPaymentSettlementBatch, type DirectRequestPaymentToken, type DirectRequestPaymentWebhookEvent, type DirectRequestPaymentWebhookSubscription, type DirectRequestPaymentWebhookSubscriptionInput, HostedCheckoutNotAvailableError, type HostedCheckoutSession, type HostedCheckoutSessionCreateInput, type HostedCheckoutSessionCreateResult, type ParsedDirectRequestPaymentChallenge, SiglumeApiError, SiglumeDirectRequestPaymentError, type SiglumeEnvelopeMeta, SiglumeWebhookPayloadError, SiglumeWebhookSignatureError, type Web3PreparedTransactionExecutePayload, type Web3PreparedTransactionExecuteResult, type Web3TransactionRequest, type WebhookSignatureVerification, buildAllowanceExecutionPayload, buildPaymentExecutionPayload, buildPreparedTransactionExecutionPayload, buildWebhookSignatureHeader, classifyDirectPaymentConfirmation, computeWebhookSignature, createDirectRequestPaymentChallenge, createDirectRequestPaymentChallengeSignature, createDirectRequestPaymentRecurringChallenge, createDirectRequestPaymentRecurringChallengeSignature, createExternal402Challenge, createExternal402RecurringChallenge, directRequestPaymentChallengeHash, directRequestPaymentRequestHash, directRequestPaymentRequestHashV2, parseDirectRequestPaymentChallenge, parseDirectRequestPaymentWebhookEvent, verifyDirectRequestPaymentChallenge, verifyDirectRequestPaymentRecurringChallenge, verifyDirectRequestPaymentWebhook, verifyExternal402Challenge, verifyExternal402RecurringChallenge, verifyWebhookSignature };
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,11 @@ var DIRECT_REQUEST_PAYMENT_RECEIPT_KIND = "sdrp_direct_payment";
|
|
|
7
7
|
var DIRECT_REQUEST_PAYMENT_ALLOWANCE_RECEIPT_KIND = "sdrp_direct_payment_allowance";
|
|
8
8
|
var DIRECT_REQUEST_PAYMENT_REFERENCE_TYPE = "sdrp_direct_payment_requirement";
|
|
9
9
|
var DEFAULT_WEBHOOK_TOLERANCE_SECONDS = 300;
|
|
10
|
-
var DIRECT_REQUEST_PAYMENT_SDK_VERSION = "0.4.
|
|
10
|
+
var DIRECT_REQUEST_PAYMENT_SDK_VERSION = "0.4.9";
|
|
11
|
+
var DIRECT_REQUEST_PAYMENT_STANDARD_SETTLED_STATUS = "settled";
|
|
12
|
+
var DIRECT_REQUEST_PAYMENT_METERED_ACCEPTED_STATUS = "pending_settlement";
|
|
13
|
+
var DIRECT_REQUEST_PAYMENT_STANDARD_FINALITY = "per_payment_onchain";
|
|
14
|
+
var DIRECT_REQUEST_PAYMENT_METERED_FINALITY = "aggregated_onchain_settlement";
|
|
11
15
|
var DIRECT_REQUEST_PAYMENT_CONFIRMED_WEBHOOK_MODES = /* @__PURE__ */ new Set([DIRECT_REQUEST_PAYMENT_MODE, "metered_settlement_batch"]);
|
|
12
16
|
var SiglumeDirectRequestPaymentError = class extends Error {
|
|
13
17
|
constructor(message) {
|
|
@@ -600,6 +604,120 @@ function parseDirectRequestPaymentWebhookEvent(payload) {
|
|
|
600
604
|
}
|
|
601
605
|
return parsed;
|
|
602
606
|
}
|
|
607
|
+
function classifyDirectPaymentConfirmation(event) {
|
|
608
|
+
const data = event.data;
|
|
609
|
+
const requirementId = stringOrNull(data.requirement_id) ?? stringOrNull(data.direct_payment_requirement_id);
|
|
610
|
+
const challengeHash = stringOrNull(data.challenge_hash);
|
|
611
|
+
const pricingBand = stringOrNull(data.pricing_band);
|
|
612
|
+
const settlementCadence = stringOrNull(data.settlement_cadence);
|
|
613
|
+
const finality = stringOrNull(data.finality);
|
|
614
|
+
const settlementStatus = stringOrNull(data.settlement_status);
|
|
615
|
+
if (event.type !== "direct_payment.confirmed") {
|
|
616
|
+
return {
|
|
617
|
+
kind: "unknown",
|
|
618
|
+
event,
|
|
619
|
+
data,
|
|
620
|
+
reason: "not_direct_payment_confirmed",
|
|
621
|
+
requirement_id: requirementId,
|
|
622
|
+
settlement_batch_id: stringOrNull(data.settlement_batch_id),
|
|
623
|
+
pricing_band: pricingBand,
|
|
624
|
+
settlement_cadence: settlementCadence,
|
|
625
|
+
settlement_status: settlementStatus,
|
|
626
|
+
finality
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
if (data.mode === "metered_settlement_batch") {
|
|
630
|
+
const settlementBatchId = stringOrNull(data.settlement_batch_id);
|
|
631
|
+
const chainReceiptId = stringOrNull(data.chain_receipt_id);
|
|
632
|
+
const usageEventDigest = stringOrNull(data.usage_event_digest);
|
|
633
|
+
if (settlementStatus === DIRECT_REQUEST_PAYMENT_STANDARD_SETTLED_STATUS && finality === DIRECT_REQUEST_PAYMENT_METERED_FINALITY && (pricingBand === "micro" || pricingBand === "nano") && settlementCadence === (pricingBand === "micro" ? "weekly" : "monthly") && settlementBatchId && chainReceiptId && usageEventDigest) {
|
|
634
|
+
return {
|
|
635
|
+
kind: "metered_batch_settled",
|
|
636
|
+
event,
|
|
637
|
+
data,
|
|
638
|
+
pricing_band: pricingBand,
|
|
639
|
+
settlement_cadence: pricingBand === "micro" ? "weekly" : "monthly",
|
|
640
|
+
settlement_batch_id: settlementBatchId,
|
|
641
|
+
chain_receipt_id: chainReceiptId,
|
|
642
|
+
usage_event_digest: usageEventDigest,
|
|
643
|
+
settled_at: stringOrNull(data.settled_at)
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
return {
|
|
647
|
+
kind: "unknown",
|
|
648
|
+
event,
|
|
649
|
+
data,
|
|
650
|
+
reason: "invalid_metered_settlement_confirmation",
|
|
651
|
+
requirement_id: requirementId,
|
|
652
|
+
settlement_batch_id: settlementBatchId,
|
|
653
|
+
pricing_band: pricingBand,
|
|
654
|
+
settlement_cadence: settlementCadence,
|
|
655
|
+
settlement_status: settlementStatus,
|
|
656
|
+
finality
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
if (pricingBand === "standard") {
|
|
660
|
+
const chainReceiptId = stringOrNull(data.chain_receipt_id);
|
|
661
|
+
if (finality === DIRECT_REQUEST_PAYMENT_STANDARD_FINALITY && settlementStatus === DIRECT_REQUEST_PAYMENT_STANDARD_SETTLED_STATUS && requirementId && challengeHash && chainReceiptId) {
|
|
662
|
+
return {
|
|
663
|
+
kind: "standard_settled",
|
|
664
|
+
event,
|
|
665
|
+
data,
|
|
666
|
+
requirement_id: requirementId,
|
|
667
|
+
challenge_hash: challengeHash,
|
|
668
|
+
chain_receipt_id: chainReceiptId,
|
|
669
|
+
request_hash_v2: stringOrNull(data.request_hash_v2)
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
return {
|
|
673
|
+
kind: "unknown",
|
|
674
|
+
event,
|
|
675
|
+
data,
|
|
676
|
+
reason: "missing_standard_settlement_fields",
|
|
677
|
+
requirement_id: requirementId,
|
|
678
|
+
pricing_band: pricingBand,
|
|
679
|
+
settlement_cadence: settlementCadence,
|
|
680
|
+
settlement_status: settlementStatus,
|
|
681
|
+
finality
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
if (pricingBand === "micro" || pricingBand === "nano") {
|
|
685
|
+
if (finality === DIRECT_REQUEST_PAYMENT_METERED_FINALITY && settlementStatus === DIRECT_REQUEST_PAYMENT_METERED_ACCEPTED_STATUS && requirementId && challengeHash) {
|
|
686
|
+
return {
|
|
687
|
+
kind: "metered_usage_accepted",
|
|
688
|
+
event,
|
|
689
|
+
data,
|
|
690
|
+
pricing_band: pricingBand,
|
|
691
|
+
requirement_id: requirementId,
|
|
692
|
+
challenge_hash: challengeHash,
|
|
693
|
+
request_hash_v2: stringOrNull(data.request_hash_v2)
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
return {
|
|
697
|
+
kind: "unknown",
|
|
698
|
+
event,
|
|
699
|
+
data,
|
|
700
|
+
reason: "missing_metered_usage_fields",
|
|
701
|
+
requirement_id: requirementId,
|
|
702
|
+
pricing_band: pricingBand,
|
|
703
|
+
settlement_cadence: settlementCadence,
|
|
704
|
+
settlement_status: settlementStatus,
|
|
705
|
+
finality
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
return {
|
|
709
|
+
kind: "unknown",
|
|
710
|
+
event,
|
|
711
|
+
data,
|
|
712
|
+
reason: "unknown_confirmation_shape",
|
|
713
|
+
requirement_id: requirementId,
|
|
714
|
+
settlement_batch_id: stringOrNull(data.settlement_batch_id),
|
|
715
|
+
pricing_band: pricingBand,
|
|
716
|
+
settlement_cadence: settlementCadence,
|
|
717
|
+
settlement_status: settlementStatus,
|
|
718
|
+
finality
|
|
719
|
+
};
|
|
720
|
+
}
|
|
603
721
|
async function verifyDirectRequestPaymentWebhook(signing_secret, body, signature_header, options = {}) {
|
|
604
722
|
const verification = await verifyWebhookSignature(signing_secret, body, signature_header, options);
|
|
605
723
|
const text = new TextDecoder().decode(bodyBytes(body));
|
|
@@ -948,11 +1066,15 @@ export {
|
|
|
948
1066
|
DEFAULT_WEBHOOK_TOLERANCE_SECONDS,
|
|
949
1067
|
DIRECT_REQUEST_PAYMENT_ALLOWANCE_RECEIPT_KIND,
|
|
950
1068
|
DIRECT_REQUEST_PAYMENT_CHALLENGE_SCHEME,
|
|
1069
|
+
DIRECT_REQUEST_PAYMENT_METERED_ACCEPTED_STATUS,
|
|
1070
|
+
DIRECT_REQUEST_PAYMENT_METERED_FINALITY,
|
|
951
1071
|
DIRECT_REQUEST_PAYMENT_MODE,
|
|
952
1072
|
DIRECT_REQUEST_PAYMENT_RECEIPT_KIND,
|
|
953
1073
|
DIRECT_REQUEST_PAYMENT_RECURRING_CHALLENGE_SCHEME,
|
|
954
1074
|
DIRECT_REQUEST_PAYMENT_REFERENCE_TYPE,
|
|
955
1075
|
DIRECT_REQUEST_PAYMENT_SDK_VERSION,
|
|
1076
|
+
DIRECT_REQUEST_PAYMENT_STANDARD_FINALITY,
|
|
1077
|
+
DIRECT_REQUEST_PAYMENT_STANDARD_SETTLED_STATUS,
|
|
956
1078
|
DirectRequestPaymentClient,
|
|
957
1079
|
DirectRequestPaymentMerchantClient,
|
|
958
1080
|
HostedCheckoutNotAvailableError,
|
|
@@ -964,6 +1086,7 @@ export {
|
|
|
964
1086
|
buildPaymentExecutionPayload,
|
|
965
1087
|
buildPreparedTransactionExecutionPayload,
|
|
966
1088
|
buildWebhookSignatureHeader,
|
|
1089
|
+
classifyDirectPaymentConfirmation,
|
|
967
1090
|
computeWebhookSignature,
|
|
968
1091
|
createDirectRequestPaymentChallenge,
|
|
969
1092
|
createDirectRequestPaymentChallengeSignature,
|