Skip to content

Instantly share code, notes, and snippets.

curl --location 'https://fulfilment-connector-staging-m2tt4.ondigitalocean.app/payment/fawry/webhook' \
--header 'Content-Type: application/json' \
--data-raw '{
"requestId": "39fcf5e43f2d4944b115a9a1f7948618",
"fawryRefNumber": "765158467",
"merchantRefNumber": "952897339548.1",
"customerMobile": "01027050131",
"customerMail":"killua@mail.com",
"customerMerchantId": "6617993379996",
"paymentAmount": 840.0,
curl --location 'https://shemsi-7tmwu9vnn-onecommerce.vercel.app/api/payments/fawry/webhook-success/' \
--header 'Content-Type: application/json' \
--data-raw '{
"requestId": "39fcf5e43f2d4944b115a9a1f7948618",
"fawryRefNumber": "765158467",
"merchantRefNumber": "951489691804.1",
"customerMobile": "01027050131",
"customerMail":"killua@mail.com",
"customerMerchantId": "6617993379996",
"paymentAmount": 840.0,
db.analytics_general.aggregate([
{
$project: {
date: { $dateFromString: { dateString: "$date" } },
"new_orders_shemsi-egypt_shopify": 1,
"new_orders_shemsi-egypt_shopify_units": 1,
"sales_shemsi-egypt_shopify": 1,
},
},
{
@moaazbhnas228
moaazbhnas228 / Create a Session (Curl) #2
Created February 1, 2023 14:12
Create a Session (Curl) #2
curl --location --request POST 'https://api.tabby.ai/api/v2/checkout' \
--header 'Authorization: Bearer pk_test_213886c2-92ed-4f0c-9286-b8a5ca92ad4d' \
--header 'Content-Type: application/json' \
--data-raw '{
"payment": {
"amount": "100",
"currency": "EGP",
"description": "string",
"buyer": {
"phone": "500000001",
@moaazbhnas228
moaazbhnas228 / Create a Session (Curl)
Created February 1, 2023 13:13
Create a Session (Curl)
curl --location --request POST 'https://api.tabby.ai/api/v2/checkout' \
--header 'Authorization: Bearer pk_test_213886c2-92ed-4f0c-9286-b8a5ca92ad4d' \
--header 'Content-Type: application/json' \
--data-raw '{
"payment": {
"amount": "100",
"currency": "AED",
"description": "string",
"buyer": {
"phone": "500000001",