Last active
October 20, 2015 03:21
-
-
Save cblanquera/ae11baa7f44eccab3d0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CHECKOUT API | |
------------------------- | |
POST api.buysana.com/rest/checkout | |
client_id=123&client_secret=123¤cy&item[0][name]=Sample+Item&item[0][price]=123.45&shipping=1 ... | |
ITEMS | |
-------- | |
item[0][name] = Sample Item 1 | |
item[0][price] = 123.45 | |
item[0][link] = http://example.com | |
item[0][image] = http://example.com/sample.jpg | |
item[1][name] = Sample Item 2 | |
item[1][price] = 234.56 | |
item[1][link] = http://example.com/ | |
item[1][image] = http://example.com/sample.jpg | |
... | |
CUSTOMER INFO | |
-------- | |
transaction_name = John Doe | |
transaction_email = [email protected] | |
transaction_phone = 555-2424 | |
address[0][label] = My Home | |
address[0][street] = 123 Sesame Street | |
address[0][city] = New York | |
address[0][state] = New York | |
address[0][country] = US | |
address[0][postal] = 10001 | |
address[1][label] = My Work | |
address[1][street] = 456 Juan Street | |
address[1][city] = Makati City | |
address[1][state] = Metro Manila | |
address[1][country] = PH | |
address[1][postal] = 1111 | |
... | |
REQUIRED | |
-------- | |
currency = PHP | |
redirect_uri = http://mysite.com/processing | |
OPTIONAL | |
-------- | |
shipping = 1 | |
terms = http://example.com/ | |
style = http://example.com/style.css | |
method = [paypal,ipay88,asiapay,dragonpay,gcash] | |
CHECKOUT WIDGET | |
------------------------- | |
WITH OPEN GRAPH | |
-------- | |
1. Put this in Head | |
<meta property="og:image" content="[PUT IMAGE HERE]" /> | |
<meta property="og:title" content="[PUT TITLE HERE]" /> | |
<meta property="og:type" content="product.item" /> | |
<meta property="product:retailer_item_id" content="[PUT ID HERE]" /> | |
<meta property="product:price:amount" content="[PUT AMOUNT HERE]" /> | |
<meta property="product:price:currency" content="[PUT CURRENCY HERE]" /> | |
<script type="text/javascript" src="http://buysana.com/widget/checkout.js"></script> | |
2. Put this anywhere in your HTML | |
<button data-buysana-id="[PUT ID HERE]" data-trigger="buysana">Buy It Now!</button> | |
WITH STRUCTURED DATA | |
-------- | |
1. Put this in Head | |
<script type="text/javascript" src="http://buysana.com/widget/checkout.js"></script> | |
2. Put this sample anywhere in your HTML. Format it however you like | |
<div itemscope itemtype="http://schema.org/Product"> | |
<meta itemprop="productID" content="[PUT ID HERE]" /> | |
<img itemprop="image" src="[PUT IMAGE HERE]" /> | |
<h1 itemprop="name">[PUT TITLE HERE]</h1> | |
<span itemscope itemprop="offers" itemtype="http://schema.org/Offer"> | |
<span itemprop="priceCurrency">[PUT CURRENCY HERE]</span> | |
<span itemprop="price">[PUT PRICE HERE]</span> | |
</span> | |
<button data-buysana-id="[PUT ID HERE]" data-trigger="buysana">Buy It Now!</button> | |
</div> | |
WITH NEITHER | |
-------- | |
1. Put this in head | |
<script type="text/javascript" src="http://buysana.com/widget/checkout.js"></script> | |
2. Put this anywhere in your HTML | |
<meta data-buysana-id="[PUT ID HERE]" name="buysana-title" content="[PUT TITLE HERE]" /> | |
<meta data-buysana-id="[PUT ID HERE]" name="buysana-currency" content="[PUT CURRENCY HERE]" /> | |
<meta data-buysana-id="[PUT ID HERE]" name="buysana-price" content="[PUT PRICE HERE]" /> | |
<meta data-buysana-id="[PUT ID HERE]" name="buysana-image" content="[PUT IMAGE HERE]" /> | |
<button data-buysana-id="[PUT ID HERE]" data-trigger="buysana">Buy It Now!</button> | |
CUSTOMIZE | |
-------- | |
1. Login to http://merchants.buysana.com/ | |
2. Click "Widget Settings" | |
Redirect To ________________ | |
Add Shipping Fields ___ | |
Link Terms And Conditions ________________ | |
Add Stylesheet ________________ | |
Choose Methods | |
__ PayPal __ G-Cash __ LBC OTC | |
__ Visa __ Millhuller __ LBC COD | |
__ Master Card __ Bank Deposit | |
[SUBMIT] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment