How to Create Simple Check-Out with PHP

Asked By 10 points N/A Posted on -
qa-featured

Now I need some help to scale over this monstrous obstacle of creating a check-out for my online shop that will soon get up and running? My first question is where do I begin with this check-out development? I am fairly conversant with programming in PHP but I do not have a clue about developing charts and adding a check-out to the shop, let alone incorporate security features for the online shop. I need your advice on what to do. Thank you.

SHARE
Answered By 0 points N/A #189573

How to Create Simple Check-Out with PHP

qa-featured
HELLO
 
PayPal is a payment platform. It is allow to accept online payment. Firstly you need to create an account at PayPal.
If you want to receive from the PayPal. You must need PayPal account with valid email address. If you do not have account, You need to register after that you need to configure class in the your ways.
Actually PayPal works as forms. You can create the form based on your service and you need to pass to the PayPal. PayPal prepare the user requirement transaction. There are lots of form is there. You don't worry about that 
Only thing is that you need to call the getCheckOut method and its very simple.
Below is the example of the getCheckOutForm() method.
This is the code to understand how can we check-out from online payment. 
<form id = "paypal_checkout" action = "https://www.paypal.com/cgi-bin/webscr" method = "post">
    <input name = "cmd" value = "_cart" type = "hidden">
    <input name = "upload" value = "1" type = "hidden">
    <input name = "no_note" value = "0" type = "hidden">
    <input name = "bn" value = "PP-BuyNowBF" type = "hidden">
    <input name = "tax" value = "0" type = "hidden">
    <input name = "rm" value = "2" type = "hidden">
 
    <input name = "business" value = "[email protected]" type = "hidden">
    <input name = "handling_cart" value = "0" type = "hidden">
    <input name = "currency_code" value = "GBP" type = "hidden">
    <input name = "lc" value = "GB" type = "hidden">
    <input name = "return" value = "http://mysite/myreturnpage" type = "hidden">
    <input name = "cbt" value = "Return to My Site" type = "hidden">
    <input name = "cancel_return" value = "http://mysite/mycancelpage" type = "hidden">
    <input name = "custom" value = "" type = "hidden">
 
    <div id = "item_1" class = "itemwrap">
        <input name = "item_name_1" value = "Gold Tickets" type = "hidden">
        <input name = "quantity_1" value = "4" type = "hidden">
        <input name = "amount_1" value = "30" type = "hidden">
        <input name = "shipping_1" value = "0" type = "hidden">
    </div>
    <div id = "item_2" class = "itemwrap">
        <input name = "item_name_2" value = "Silver Tickets" type = "hidden">
        <input name = "quantity_2" value = "2" type = "hidden">
        <input name = "amount_2" value = "20" type = "hidden">
        <input name = "shipping_2" value = "0" type = "hidden">
    </div>
    <div id = "item_3" class = "itemwrap">
        <input name = "item_name_3" value = "Bronze Tickets" type = "hidden">
        <input name = "quantity_3" value = "2" type = "hidden">
        <input name = "amount_3" value = "15" type = "hidden">
        <input name = "shipping_3" value = "0" type = "hidden">
    </div>
 
    <input id = "ppcheckoutbtn" value = "Checkout" class = "button" type = "submit">
</form>

Login/Register to Answer

Related Questions