
內容簡介
這是 Razorpay 商家官方的「Quick Payments」外掛程式。它允許您執行以下操作:
在頁面中添加一些自訂變數和標記。
將金額、名稱、描述和其他自訂細節作為頁面元數據指定。
在文章中想要顯示按鈕時編寫 [RZP]。
外掛程式會接管並完成付款。
這利用了 Razorpay 訂單 API,流程如下:
外掛程式在呈現頁面之前解析頁面
如果找到相關的資料和標記,則插入其 JavaScript / CSS / HTML
按一下按鈕會使用 Ajax / Razorpay API 創建「訂單」
訂單 ID 帶著啟用自動捕捉的結帳功能
付款在那裡完成,客戶收到通知
自訂
為使此外掛正常工作,請使用「螢幕選項」(對於 >4.8)中的「自訂欄位」將以下項目作為頁面元數據註記:
產品的「名稱」。
產品的「描述」。
至少為 1 印度盧比的「金額」。
外掛標籤
開發者團隊
原文外掛簡介
This is the official “Quick Payments” plugin for Razorpay merchants. This allows
you to do the following:
Add a few custom variables and some markup to a page.
Specify the amount, name, description and other custom details as page metadata.
Write [RZP] wherever you want on the post and the button to show up.
The plugin takes over and completes the payment.
This makes use of the Razorpay Orders API, and the flow is the follows:
The plugin parses the page before it is rendered
Inserts its javascript/css/html if it finds the relevant data and markup
A click on the button creates an “order” using Ajax/Razorpay API
The order ID is passed to checkout with auto-capture enabled
The payment is completed there itself and the customer is informed
Customization
For this plugin to work correctly, please mention the following items as page metadata (using Screen Options for >4.8) -> Custom Fields:
‘name’ of the product.
‘description’ of the product.
‘amount’ with a minimum of 1 rupee.
