First Payment and Payment Selection
Customers may immediately close their browser after completing payment on the payment page. The website still needs to receive and verify the result to determine which order can be delivered. The payment button merely leads people to the entry point of the process.
First, use a digital template to test a single payment: set the price, delivery details, acquisition method, and refund contact, then place the order and send notifications. Subscriptions, discounts, and points are listed separately later.
Greenbound vs. NewebPay, choose according to store conditions
- Primary choice: Greenbound ECPay. This article uses the transaction and payment result notification documents of the full-fledged payment system as a reference, suitable for understanding and connecting step by step according to the official process.
- Alternative choice: NewebPay. Compare according to store conditions, required payment methods, fees, and disbursement arrangements. The two companies have different notification fields and verification mechanisms, so they cannot be used interchangeably.
When comparing Greenbound and NewebPay, look at the rates, minimum fee per transaction, fixed fee, withdrawal or order processing fee together, and also confirm the tax-inclusive calculation. Product type, application conditions, payment methods, and disbursement arrangements also affect the choice. Single payments and periodic deductions must be confirmed separately; do not assume all payments are available simply because of the brand name.
After Order Placement, Waiting for a Reliable Payment Result
The customer provides the product code, the backend obtains the price, creates a unique order number, and saves the amount due and the pending payment status. Do not use the price automatically sent by the browser as the basis for payment.
Based on the application results, the store and test credentials are set up, and the secret remains as a variable in the server environment. If using a payment merchant's payment page, the website manages orders, and payment information is processed on the payment page. After testing is completed, the production environment is switched, and the URL and credentials must be switched as a set.
Static pages also require backend or managed server functionality to store secrets, establish trusted orders, and receive notifications. Paste the key into public JavaScript, and any visitor has the opportunity to obtain it.
The process continues even after the payment page is closed.
Green World's comprehensive payment system receives server notifications via ReturnURL. After verification according to the official checkcode mechanism, the store, order, amount, and transaction status are checked to exclude simulated payments before proceeding to formal delivery. It is not sufficient to simply look at which URL the payment page redirects to.
After ATM or convenience store payment information is established, it is initially recorded as pending payment. Once the actual payment is confirmed, the order is updated. The result page reads the backend status, and the backend queries the payment system only when necessary, rather than relying on the customer keeping the page open.
Refunds, invoices, and recurring deductions each have their own processes. This test only recorded a single successful payment; other functions will be tested separately.
Testing Scenarios and Development Requirements
- After successful payment, the order amount matches the payment system backend.
- For cancellations, failures, overdue payments, and unpaid transactions, "delivered" will not be displayed.
- After payment, closing the browser does not prevent the backend from confirming the transaction.
- Repeated clicks or notifications will not result in repeated deliveries.
- Incorrect signatures, discrepancies in amounts, and simulated payments will not trigger official activation.
- There are operable processes for confirming refunds, reconciliation, and customer service order inquiries.
Please have AI organize the process according to the official documents.
Please plan a single payment process according to the official Taiwan payment documentation I provided: create an order, go to the payment page, backend notification verification, and payment status query. List the responsibilities of the front-end and back-end, environmental variables, order status, and test scenarios. The price is confirmed by the backend; transactions must be verified and simulated payments excluded before official activation. Please mark any uncertain fields as pending verification; do not fabricate APIs.
During acceptance testing, match the website orders with the payment backend, including cancellation, unpaid, and failed statuses. Customer service will then use the same set of transaction identifiers for order checks.
