You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Global Payments Ecommerce HPP中使用卡片存储?配置后无预期返回

Troubleshooting Realex Card Storage Flow Issues

Looking at your provided form code, let's walk through the most common pitfalls that might be preventing the card storage process from working as expected:

  • Verify the SHA1HASH Signature
    Realex's signature is critical for validating your request. Ensure you're generating it using the correct format:

    TIMESTAMP.MERCHANT_ID.ORDER_ID.AMOUNT.CURRENCY
    

    Then hash this string with your merchant's shared secret using SHA1. Even a tiny mismatch (like a wrong timestamp or amount value) will invalidate the request, and card storage won't trigger. Double-check that all values in your form match exactly what you used to generate the hash.

  • Check PAYER_EXIST and PAYER_REF
    You've set PAYER_EXIST=0, which tells Realex to create a new payer. Make sure your PAYER_REF is a unique value that hasn't been used before in the sandbox environment. If this PAYER_REF already exists, you need to set PAYER_EXIST=1 instead—otherwise, the payer creation will fail silently, and no card will be stored.

  • Validate HPP_POST_RESPONSE
    This field must point to a valid, publicly accessible URL on your domain that's whitelisted in your Realex merchant account. Realex sends the card storage results (including confirmed PAYER_REF and PMT_REF) to this endpoint via POST. If the URL is invalid, unreachable, or not whitelisted, you won't receive the expected response data, making it seem like the flow isn't working.

  • Confirm Card Storage Field Integrity
    You have the required fields enabled (CARD_STORAGE_ENABLE=1 and OFFER_SAVE_CARD=1), but ensure these values aren't being accidentally modified by client-side JavaScript before submission. Also, PMT_REF should be a unique identifier—while it's linked to your ORDER_ID, avoid reusing values across different transactions.

  • Check Sandbox Account Permissions
    Not all default Realex sandbox accounts have card storage enabled by default. Log into your sandbox merchant dashboard to confirm that the card storage feature is activated for your account. If it's disabled, you'll need to request access or switch to a sandbox account that supports it.

A pro tip: Enable Realex's request logging in your merchant dashboard. The detailed response logs will include error codes and descriptions (like INVALID_HASH or DUPLICATE_PAYER_REF) that can pinpoint exactly where your request is failing.

内容的提问来源于stack exchange,提问作者Spurious

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 06:40:21