@paynodelabs/sdk-js 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/errors/index.js +1 -1
- package/dist/utils/verifier.js +1 -1
- package/package.json +1 -1
package/dist/errors/index.js
CHANGED
|
@@ -29,7 +29,7 @@ exports.ERROR_MESSAGES = {
|
|
|
29
29
|
"transaction_not_found": "Transaction not found on-chain.",
|
|
30
30
|
"wrong_contract": "Payment event was not emitted by the official PayNode contract.",
|
|
31
31
|
"order_mismatch": "OrderId in receipt does not match requested ID.",
|
|
32
|
-
"missing_receipt": "Please pay to PayNode contract and provide '
|
|
32
|
+
"missing_receipt": "Please pay to PayNode contract and provide 'X-402-Payload' header.",
|
|
33
33
|
};
|
|
34
34
|
class PayNodeException extends Error {
|
|
35
35
|
code;
|
package/dist/utils/verifier.js
CHANGED
|
@@ -45,7 +45,7 @@ class PayNodeVerifier {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
static ROUTER_ABI = [
|
|
48
|
-
"event PaymentReceived(address indexed merchant, address indexed token, uint256 amount,
|
|
48
|
+
"event PaymentReceived(bytes32 indexed orderId, address indexed merchant, address indexed payer, address token, uint256 amount, uint256 fee, uint256 chainId)"
|
|
49
49
|
];
|
|
50
50
|
async verify(unifiedPayload, expected, extra) {
|
|
51
51
|
try {
|