Skip to content

Instantly share code, notes, and snippets.

@hussaintamboli
Forked from amolv/gist:7382540
Last active December 27, 2015 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hussaintamboli/7382869 to your computer and use it in GitHub Desktop.
Save hussaintamboli/7382869 to your computer and use it in GitHub Desktop.
signature = "234kkkdkfkdfkeekke-32kd-2349kdk3-dk2"
timeStamp = "2013:10:16 16:21:08"
accessToken = "89389kdfk-23499dkkkkjkk23ee"
{ requestedParams }
loginUrl = wp login url to redirect if access token expired
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
productName = '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
productName = '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
productName = '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 }
previousDue
wpId = 122 # wp id
productItemId = 1 # its hardcoded value
productName = 'Previous Due' # product name
quantity = 1 # quantity
price = 50 # Price is in USD that we provide after login you need to convert it according to cart currency
discount = 0 # Discount in % 0
discountedPrice = 17 # Same as Price
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment