説明例
In this example we created a custom payment experience for a site visitor, using the Velo Pay API.
どのように構築したか
Before you start working with the Wix Pay API, make sure you do the following:
Apply all necessary security precautions for working with payments in code. Specifically, make sure to always define payment information in the backend.
Set up accepted payment methods on your site. We also recommend that you understand the typical payment process before proceeding.
仕組み
We displayed a product for sale and added a payment button. When a visitor clicks the button, the BE_PayAPI.jsw backend module is called, and the Wix Pay createPayment() function creates a payment info object with a unique payment ID.
The Wix Pay startPayment() function runs in the client-side with the payment ID, opening a payment popup. The visitor enters payment information and completes the transaction.
次のステップ
この例をエディターで開き、テンプレートを操作してください。
サイトを公開する。
どのように Veloでの例題の扱い方.
関連例
これは役に立ったか?
|
ご意見ありがとう!
データベース・コレクション内の商品に対する支払いを収集する
データベースコレクション内の商品に対して、迅速かつ安全に支払いを行うことができます。
中級
Currency Converter
Convert a specified amount of money from one currency to another
中級