Skip to content

Instantly share code, notes, and snippets.

@amolv
Created November 9, 2013 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save amolv/7382540 to your computer and use it in GitHub Desktop.
Save amolv/7382540 to your computer and use it in GitHub Desktop.
{ requestedParams }
loginUrl = wp login url to redirect if access token expired
signature = "234kkkdkfkdfkeekke-32kd-2349kdk3-dk2"
timeStamp = "2013:10:16 16:21:08"
accessToken = "89389kdfk-23499dkkkkjkk23ee"
accountId = 1
currency = "USD"
countryId = 2
billingFrequency = 1 # in months. Set only if any recurring item is purchased. recurring items = licenses or incoming numbers
totalAmount = 1200
discountedAmount = 1100
discount = 20 # Set only if discount is on total purchase not on items.
orderId = 1502
{ cartItems }
Sms package / Add ons
wpId = 122 # wp id
productItemId = 1 to 7 # screen magic id of silver item
product_name = 'Silver' # product name
quantity = 1 # quantity
price = 100 # for validation
discount = 10 # Discount in %
discountedPrice = 90 # discounted price to send paypal
Incoming numbers
wpId = 122 # wp id
productItemId = 1 # its country id
product_name = 'India' # product name
quantity = 1 # quantity
price = 100 # For validation
discount = 10 # Discount in %
discountedPrice = 90 # discounted price to send paypal
Licenses
wpId = 122 # wp id
productItemId = 1-5 # its product id
product_name = '1-3/3-6/6-9' # product name
quantity = 5 # quantity
price = 18 or price/lic # for validation 18$ for 1-3 or price/lic
discount = 10 # Discount in %
discountedPrice = 17 # discounted price to send paypal{ ( price * quantity ) - discount }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment