返金の取引
Stripe Terminal は、自動と手動の両方のキャプチャーをサポートしています。
When the SDK returns a confirmed PaymentIntent to your app, the payment is authorized but not captured. You can cancel payments that are authorized and not captured. If the PaymentIntent has already been captured, you must refund the underlying charge created by the PaymentIntent, using the refunds API or Dashboard.
We recommend reconciling payments on your backend after a day’s activity to prevent unintended authorizations and uncollected funds.
利用状況
支払いのキャンセルは、Visa、Mastercard、アメリカン・エキスプレス、ディスカバーで利用できます。Interac、eftpos などの単一メッセージの決済手段では、PaymentIntents が自動的にキャプチャーされます。PaymentIntents をキャンセルする代わりに、お客様のアプリケーションで、決済フローの最後に返金の開始を許可するようにしてください。
オンラインの返金は、Interac を除くすべてのカードネットワークで利用できます。
対面での返金は、Interac でのみ利用できます。
支払いをキャンセルする クライアント側サーバー側
card_present
PaymentIntent はキャプチャーされる前であれば、いつでもキャンセルできます。PaymentIntent をキャンセルすると、キャプチャーされていないすべての売上がリリースされ、キャンセルされた PaymentIntent は支払いの実行に使用できなくなります。
This can be useful if, for example, your customer decides to use a different payment method or pay with cash after the payment has been processed. In your application’s UI, consider allowing the user to cancel after confirming the payment, before finalizing the payment and notifying your backend to capture.
クライアント側
iOS、Android、または React Native SDK を使用して、クライアントから PaymentIntent
をキャンセルします。
注
クライアント側での PaymentIntent
のキャンセルは、iOS、Android、または React Native SDKs を使用して実行できます。サーバー主導型の連携を使用している場合は、サーバー側で PaymentIntent
をキャンセルします。
サーバー側
JavaScript SDK とサーバー主導型の連携では、サーバーで PaymentIntent
をキャンセルする必要があります。iOS、Android、React Native では、アプリですぐに支払いの開始に必要な情報を利用できないときは、サーバーで PaymentIntent
をキャンセルできます。
返金 クライアント側サーバー側
顧客からの支払いの回収に PaymentIntent を使用するときに、Stripe は Charge (支払い) をバックグラウンドで作成します。PaymentIntent が正常に完了した後に顧客の支払いを返金するには、PaymentIntent ID または支払い ID を渡して返金を作成します。必要に応じて、金額を指定して支払いの一部を返金することもできます。
返金は、API またはダッシュボードを介して実行できます。カナダの Interac 取引の場合、BBPOS WisePOS E リーダーと Stripe リーダー S700 が、代わりに対面での返金に対応します。
オンラインの返金では、 カード保有者が店舗で再度カードを提示する必要はありません。以下の例は、PaymentIntent ID を渡して全額の返金を作成する方法を示したものです。
PaymentIntent の一部を返金するには、セント単位の整数で (または支払い通貨の最小単位で)、amount
パラメーターを指定します。