Թողարկման նշումներ
Added
- A payment taken back by a lost dispute is reported as
GatewayPaymentState.Reversed.GetStatusAsyncreads the Checkout Session with the payment's charge and its dispute in one call, and answersReversed(raw statusdispute_lost) only when Stripe says the dispute status islost; an open dispute, a won one and a warning stay paid. - The reason a payment failed is sent as
GatewayPaymentStatus.FailureReason. The documented error and decline codes of the last attempt (for exampleinsufficient_funds,expired_card,incorrect_cvc,authentication_failure,stolen_card) map to the SDK'sPaymentFailureReason; a code in no table, or text instead of a code, names no reason. A session still open stays pending, so the payer can try again. IPaymentRefundStatePlugin.StartRefundAsyncanswersCompletedfor a succeeded refund andPendingfor one Stripe has not finished, andGetRefundStateAsyncreads the refund (failedandcanceledareFailed). A refund Stripe fails at once is raised as a refusal. The refund id is still the idempotency key.- Webhook events now reach the host. A verified
charge.dispute.closed,refund.failedorrefund.updatedmakes the plugin look up the Checkout Session of the event's payment intent and ask the host to read that order, so a lost dispute and a failed refund are read without waiting for a poll. A payment intent without a session sends no hint, and an id of the wrong shape is never put into a request. - The
multi_currencysetting (off by default). On,AcceptsCurrencytakes every currency the plugin offers and a payment or a saved card charge is made in the currency of its invoice, fromPaymentInstruction.CurrencyandStoredChargeInstruction.Currency. Off keeps one currency per instance.
Changed
- The plugin is built on
Hostpanel.Sdk3.19.0, andminHostVersionis 0.12.0. The manifest names the package insdkPackageVersion. - A refund uses
RefundInstruction.TransactionIdandRefundInstruction.Currencywhen the host sends them, so it makes one call to Stripe instead of two. Without them it reads the session first, as before. The earlier decision not to useTransactionIdis reversed: with the currency sent by the host the amount no longer depends on the session. - A read of a Checkout Session expands the payment intent, so its
payment_intentmay be an object; the reader takes the id from either form.
Not adopted
- Billing Portal. The SDK has no capability that gives a client a link to a gateway's own management page, and the host already lists, defaults and removes saved methods through
IStoredCredentialPlugin. expires_atfrom the invoice due date andPaymentInstruction.DueAt. A session can expire at most 24 hours after it is created, so it cannot follow a due date that is days away, and an overdue invoice must stay payable.- Adaptive pricing. It only shows the payer a converted price and settles in the account currency, so it is not a way to charge an invoice in its own currency;
multi_currencyis.
Տեղադրել այս տարբերակը
- 1
Բացեք պլագինների ցանկը Hostpanel-ի ադմինում։
- 2
Տեղադրեք «stripe» նույնացուցիչով պլագինը և ընտրեք 1.5.0 տարբերակը։
- 3
Hostpanel-ը ռեեստրից ներբեռնում է այս ստորագրված փաթեթը և բեռնելուց առաջ ստուգում ստորագրությունը և SDK-ի տարբերակը։