Return URLs and signature
Which URLs are used by the Hosted Payment Pages of NBG Global Payments, how signature is controlled and what to exclude from cache.
With Hosted Payment Pages, the provider returns the customer and sends the payment status to his URLs e-shop automatically created:
| URL | Role |
|---|---|
/wc-api/globalpayments_hpp_return/ | Return of the client after payment. |
/wc-api/globalpayments_hpp_status/ | Status alert from the provider. |
/wc-api/globalpayments_hpp_final/ (with simple permalinks: /?wc-api=…) | Final processing of the answer. |
The checkout page with ?cancelled=1 | Cancel from the client. |
You do not declare them anywhere: they are sent with any payment request. Every answer is checked by signing X-GP-Signature. If the signature does not match, the page shows Invalid signature And the order doesn't change.
What should apply#
- URLs with
/wc-api/globalpayments_orwc-api=globalpayments_do not go through page cache or CDN. - Firewall (WAF) or safety plugin does not block POST requests to them.
- There is no password or maintenance mode on the live site.
If a payment is shown to the provider but the order remains Payment pendingCheck these points first.
Send a request; the plugin and the article are automatically completed.