Skip to content

Instantly share code, notes, and snippets.

@darilldrems
Created July 21, 2016 17:59
Show Gist options
  • Save darilldrems/5741d4cbcf8532e4276f2e8468c60357 to your computer and use it in GitHub Desktop.
Save darilldrems/5741d4cbcf8532e4276f2e8468c60357 to your computer and use it in GitHub Desktop.
//to generate qr code for a product
POST curl https://pwcstaging.herokuapp.com/product/getQrCode
-H "Authorization: Bearer [access_token_here]"
-d merchant_id=jeeh
-d name=hgfh
-d description=selling that thing
-d amount_locked=true //can be true or false
-d amount=10000
-d image=fhfggfjfghghgg //A base64 encode image string
//to get generated qr code using product ref
POST curl https://pwcstaging.herokuapp.com/product/getQrCode
-H "Authorization: Bearer [access_token_here]"
-d product_id=7363647
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment