woo-razorpay
Last commit date
css
4 years ago
images
5 years ago
includes
2 years ago
js
4 years ago
public
3 years ago
razorpay-sdk
2 years ago
templates
3 years ago
tests
2 years ago
.editorconfig
9 years ago
LICENSE
10 years ago
btn-1cc-checkout.js
3 years ago
checkout-block.php
2 years ago
checkout_block.js
2 years ago
composer.json
3 years ago
composer.wp-install.json
3 years ago
debug.md
4 years ago
phpunit.xml
3 years ago
readme.txt
2 years ago
script.js
3 years ago
woo-razorpay.php
2 years ago
debug.md
59 lines
| 1 | localhost - incognito - key + order_id sent |
| 2 | |
| 3 | |
| 4 | kinsta - incognito - key + order_id sent |
| 5 | |
| 6 | |
| 7 | |
| 8 | localhost - incognito - only order_id |
| 9 | |
| 10 | |
| 11 | kinsta - incognito - only order_id |
| 12 | |
| 13 | |
| 14 | TODO |
| 15 | - Confirm if we send both `key` and `order_id` |
| 16 | - |
| 17 | |
| 18 | |
| 19 | Bug on Chrome NOT on Firefox |
| 20 | Incog -> prefill number + email -> open checkout for non-logged in user -> goes to address before otp check |
| 21 | |
| 22 | Firefox Curl |
| 23 | ``` |
| 24 | curl 'https://omega-api.stage.razorpay.in/v1/customers/status/+918888888888?x_entity_id=order_IDu8TYW7wKolMv&_[platform]=browser' --globoff -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:93.0) Gecko/20100101 Firefox/93.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Referer: https://omega-api.stage.razorpay.in/test/checkout.html?branch=feat/1cc' -H 'Cookie: razorpay_api_session=eyJpdiI6IjJUYkU1Kzc2cXNLa2ZzeW5wNzhPTWc9PSIsInZhbHVlIjoiRDFSdFJhTllcL2NrbnI3UFlYQnh4SHRCazNYS0JlNlVla05HWm9rQ0piaVwvbzduemtPQ3did1RiZDQwUnRvWnVQOTVmVkx3aWhMbGVOeFZZVXpyRThlcU9UNUE5Z2xyXC9YNE5FM2VxcnBhb292RTJuSGRzaE1WeGtGZGF2OERGQW4iLCJtYWMiOiJmZjBjOWM0OTNlM2JiMTk0OGQ3MzdkYzRlMDQxYTg4ZjgyYzM2MjIzYjRiNzYzYWI2MGYzNTgyNmVhZjE4Nzg3In0%3D' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' |
| 25 | ``` |
| 26 | |
| 27 | |
| 28 | Chrome Curl |
| 29 | ``` |
| 30 | curl 'https://omega-api.stage.razorpay.in/v1/customers/status/+918888888888?x_entity_id=order_IDu8TYW7wKolMv&_\[platform\]=browser' \ |
| 31 | -H 'Connection: keep-alive' \ |
| 32 | -H 'sec-ch-ua: "Google Chrome";v="95", "Chromium";v="95", ";Not A Brand";v="99"' \ |
| 33 | -H 'sec-ch-ua-mobile: ?0' \ |
| 34 | -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36' \ |
| 35 | -H 'sec-ch-ua-platform: "macOS"' \ |
| 36 | -H 'Accept: */*' \ |
| 37 | -H 'Sec-Fetch-Site: same-origin' \ |
| 38 | -H 'Sec-Fetch-Mode: cors' \ |
| 39 | -H 'Sec-Fetch-Dest: empty' \ |
| 40 | -H 'Referer: https://omega-api.stage.razorpay.in/test/checkout.html?branch=feat/1cc' \ |
| 41 | -H 'Accept-Language: en-GB,en;q=0.9' \ |
| 42 | --compressed |
| 43 | ``` |
| 44 | |
| 45 | |
| 46 | |
| 47 | curl --location --request POST 'https://api.razorpay.com/v1/orders' \ |
| 48 | --header 'Authorization: Basic cnpwX3Rlc3RfMURQNW1tT2xGNUc1YWc6dGhpc2lzc3VwZXJzZWNyZXQ=' \ |
| 49 | --header 'Content-Type: application/json' \ |
| 50 | --data-raw '{ |
| 51 | "amount": 100000, |
| 52 | "currency": "INR", |
| 53 | "receipt": "ORDER_COUPON", |
| 54 | "payment_capture": 1, |
| 55 | "notes": { |
| 56 | "notes_key_1": "Book 1" |
| 57 | } |
| 58 | }' |
| 59 |