Docstoc

Can Paypal Account Be Paid Using Credit Card

Document Sample
Can Paypal Account Be Paid Using Credit Card Powered By Docstoc
					Integrating paypal into a website


       patrick joubert 6 posts since
Nov 12, 2009
Hi,



I've read alot of the documentation but still have some questions. I have a client that has
a small business, they have paid for a PayPal account so people can use credit cards to
purchase items from their website.



I have created the "add to cart" buttons that are needed and placed them into the html
pages. I am not sure what the next step is.



Do I need to configure anything else?

My client doesn't have a third party shopping cart, do they need one or can PayPal do all the
needed transactions? Again, they are a very small business so they won't have lots of traffic
at this point.



I hope my questions are clear and that you can help guide me.



Thank you



         PP_MTS_Magarvin 3,470 posts since
Nov 3, 2009 1. Re: Integrating paypal into a website Nov 30, 2009 8:36 AM

Hi patrick joubert,




Generated by Jive SBS on 2010-11-14-08:00
                                                                                              1
Integrating paypal into a website


First if you are using the PayPal shpping cart, your buyers will leave your website to PayPal
to make a payment with their credit card or PayPal account.



You stated that '...... they have paid for a PayPal account so people can use credit cards to
purchase items from their website.' I assume you are referring to Website Payments Pro.



The PayPal shopping cart is not compatible with Website Payments Pro. To integrate
Website Payments Pro on your website, you will need a third party shopping cart or if you
are an experienced developer, you can create your own checkout and link it with the PayPal
APIs.



Below is a link to third party shopping carts integrated with Website Payments Pro:



https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/
solutions_carts_wp_pro



For custom integration of website payments pro on your website, you can start by going to
the link below:



https://www.x.com/community/ppx/wpp



Thanks.



         patrick joubert 6 posts since
Nov 12, 2009 2. Re: Integrating paypal into a website Nov 30, 2009 2:29 PM

  in response to: PP_MTS_Magarvin
Thanks for the response.




Generated by Jive SBS on 2010-11-14-08:00
                                                                                                2
Integrating paypal into a website




I do have some backend programming experience but I fear this may be out of my league....



So if we use a third party cart, do we still use the buttons I have created for the cart (add to
cart, created with the PayPal online forms)?



Or will the purchased shoping cart have these functions built in?



Thanks again.



         PP_MTS_Magarvin 3,470 posts since
Nov 3, 2009 3. Re: Integrating paypal into a website Dec 2, 2009 6:19 AM

  in response to: patrick joubert
Hi patrick joubert,



The shopping cart with come with their own buttons. If you decide to use a third party
shopping cart, then you do not have to use the PayPal add to cart buttons generated from
your PayPal account.



Thanks.



         patrick joubert 6 posts since
Nov 12, 2009 4. Re: Integrating paypal into a website Dec 2, 2009 11:56 AM

If we use the buttons generated, it seems like it opens the cart in a new browser. This might
be ok with my client.



But, will I need to configure the tax for each state that customers might be purchasing from?



Generated by Jive SBS on 2010-11-14-08:00
                                                                                                   3
Integrating paypal into a website




I'm starting to think this is way over my head, so I'll be looking into third party carts, but I am
curious about my question above.



Thanks again.



         PP_MTS_Magarvin 3,470 posts since
Nov 3, 2009 5. Re: Integrating paypal into a website Dec 3, 2009 6:24 AM

  in response to: patrick joubert
Hi patrick joubert,



Having the cart page open in another window is necessary if you are framing. However,
you can change this functionality by removing <target = "paypal"> in the first line of the
generated code.



If you are using the PayPal buttons and you want to chage tax based on state, yes, you will
need to configure tax for each state (that is, if required by your state). You may need to
verify this with your local tax office whether or not you need to charge tax for every state.



You can setup the tax calculation in your PayPal account (Profile - Tax calculations)



Thanks.



         Denna Shelton 6 posts since
Dec 3, 2009 6. Re: Integrating paypal into a website Dec 3, 2009 8:36 AM

  in response to: PP_MTS_Magarvin
Patrick,




Generated by Jive SBS on 2010-11-14-08:00
                                                                                                  4
Integrating paypal into a website


I've been trying to integrate just the payment process of PayPal into Virtuemart 1.1.4. All of
the code and examples for this using IPN always seem to take the user to a PayPal login
that requires the user to create a PayPal account which is not what I want to happen.



I have a Web Payments Standard account and all I want to do is pass the transaction
amount and creadit card information to PayPal, authorize, capture and return confirmed or
denied to my notify.php file. The majority of what I will sell are digital downloads and once
the payment is confirmed, I need the confirmation code sent to my notify.php in order for
the system to update the order status which if confirmed, will kick off a download email
with the appropriate link and download code. That part works fine when I do it manually in
Virtuemart.



Any help, suggestions or otherwise would be greatly appreciated! I've been struggling with
this for many weeks and it just seems that it shouldn't be this difficult!



Thanks,



20Gems



         Denna Shelton 6 posts since
Dec 3, 2009 7. Re: Integrating paypal into a website Dec 3, 2009 11:11 AM

  in response to: Denna Shelton
Previous Post and Question was mistakenly addressed to Patrick, should be addressed to
PayPal Development support.



Apologies.



Any response and help would be greatly appreciated!




Generated by Jive SBS on 2010-11-14-08:00
                                                                                                 5
Integrating paypal into a website


Thanks!



20Gems



         PP_MTS_Magarvin 3,470 posts since
Nov 3, 2009 8. Re: Integrating paypal into a website Dec 3, 2009 2:00 PM

  in response to: Denna Shelton
Hi Denna Shelton,



In most cases, this can be caused by your cart passing wrong variables in the form post to
PayPal or not using the right URL, which is "https://www.paypal.com/cgi-bin/webscr"



You can verify the variables your cart is passing to PayPal with the PayPal standard
variables - here



I will suggest first getting the payment to go through before troubleshooting the IPN part of it.



Can you post the code that your website is sending to PayPal here so that we can further
investigate? Don't foget to remove your email address and any information you don't want to
share from the code before posting it here.



Thanks.



         Denna Shelton 6 posts since
Dec 3, 2009 9. Re: Integrating paypal into a website Dec 3, 2009 7:00 PM

  in response to: PP_MTS_Magarvin
Hello and thanks for the reply!




Generated by Jive SBS on 2010-11-14-08:00
                                                                                                6
Integrating paypal into a website




Here's the code that's in the 'Payment Extra Info' section. I hope you can help sort it out! Any
additional information you need, please ask!



<?php

/** Read current Configuration ***/
include_once(CLASSPATH ."payment/ps_paypal_conf.cfg.php");
include_once(CLASSPATH ."payment/ps_paypal_conf.php");

$db_conf = new ps_DB;
$ps_paypal_conf = new ps_paypal_conf();
$NOTIFY_DEBUG = false;

$url = "https://www.paypal.com/cgi-bin/webscr";
$return_url = SECUREURL ."index.php?
option=com_virtuemart&page=checkout.result_confirmation&order_number=";
$notify_url = SECUREURL ."administrator/components/com_virtuemart/
notify_gen_transaction.php";
$cancel_return = SECUREURL ."index.php?
option=com_virtuemart&page=checkout.result_confirmation&cancel=1";

$_SESSION["payement_transid"] ="";
$transid = $_SESSION["payement_transid"];
$order_number = $_SESSION["payement_order_number"];

//Calc total for paypal
$paypal_total = $total-$discount_total;
if ($auth["show_price_including_tax"] == 0) $paypal_total += $tax_total;

$_SESSION['total_amount'] = round( $paypal_total, 2);
$_SESSION['shipping_amount'] = sprintf("%.2f", $shipping_total);

//Create URL string to save all Request parameters
$requests = JRequest::get();



Generated by Jive SBS on 2010-11-14-08:00
                                                                                               7
Integrating paypal into a website


$confirmurl="";
foreach( $requests as $name => $value ) {
    $confirmurl .= $name . "=" . $value . "&";
}
if(!empty($zone_qty)) $confirmurl .= "&zone_qty=$zone_qty";

//If transaction has already been confirm then User payed and hit back button => Clean up
session and redirect to thankyou
if($ps_paypal_conf->payement_is_confirmed($transid, $db_conf)){
       if ($NOTIFY_DEBUG) echo "payement is confirmed";
      //Order has been confirmed so clean up and reload modified SESSION from database
      $order_number = $ps_paypal_conf->cleanup_session($transid, $db_conf);
      // Redirect to thankyou page
      if ($NOTIFY_DEBUG) echo "should redirect to $return_url . $order_number";
      vmRedirect( $return_url . $order_number);


}elseif (!(empty($transid))){
      //User Came back to checkout without having payed, simply update session data in DB
      $sql = "SELECT * from #__vm_orders_temp WHERE id='".$transid."'";
      $db_conf->query($sql);
      if(!$db_conf->next_record()){
         //Transaction is not in DB at all, something is wrnog clean up ...
         $ps_paypal_conf->cleanup_session_vars();
         $transid = "";
         $_SESSION['total_amount'] = round( $paypal_total, 2);
         $_SESSION['shipping_amount'] = sprintf("%.2f", $shipping_total);
      }else{
         if ($NOTIFY_DEBUG) echo "TransID not empty updating DB transid = $transid";
         $sessioncontent=base64_encode(serialize($_SESSION));
        $sql = "UPDATE #__vm_orders_temp SET urlpost='".addslashes($confirmurl)."',
urlerror='".addslashes($errorurl)."', sessioncontent='".addslashes($sessioncontent)."' ,
modifiedtime=NOW() WHERE id='".$transid."'";
         $db_conf->query($sql);



Generated by Jive SBS on 2010-11-14-08:00
                                                                                            8
Integrating paypal into a website


      }


}

if (empty($transid)){
    //First time on Checkout page save temporary transaction information


    //Get Order Number using default checkout function
    include_once(CLASSPATH ."ps_checkout.php");
    $ps_checkout = new ps_checkout();
    $order_number = $ps_checkout->get_order_number();
    if ($NOTIFY_DEBUG) echo "New ORDER NUMBER = $order_number";


    // Add order Number to session value before saving to db
    $_SESSION["payement_order_number"]=$order_number ;
    $sessioncontent=base64_encode(serialize($_SESSION));


    //Save temporary transaction data to DB
   $sql = "INSERT INTO #__vm_orders_temp
(`status`,`urlpost`,`urlerror`,`createdtime`,`modifiedtime`, `sessioncontent`, `order_number` ,
`user_id`) VALUES
('0','".addslashes($confirmurl)."','".addslashes($errorurl)."',NOW(),NOW(),'".addslashes($sessioncontent)
$order_number."','".$my->id. "')";
    $db_conf->query($sql);


    $_SESSION["payement_transid"] = $transid = $db_conf->last_insert_id();
}

if ($NOTIFY_DEBUG) print $_SESSION["payement_order_number"];



//Get coutry code
$db1 = new ps_DB();




Generated by Jive SBS on 2010-11-14-08:00
                                                                                                  9
Integrating paypal into a website


$q = "SELECT country_2_code FROM #__vm_country WHERE country_3_code='".$user-
>country."' ORDER BY country_2_code ASC";
$db1->query($q);

//Get user infos
$dbbt = new ps_DB;
$q = "SELECT * FROM jos_vm_user_info ";
$q .= "WHERE user_id ='".$my->id."' ";
$dbbt->query($q);

//**** START FORM CREATION *****//

if (GENERATE_TRANSACTION_ON_CONFIRMATION == 1) {
   //Form for including directly into checkout.index form
   //Defines all input variables off form
   $post_variables = Array(
      "cmd" => "_ext-enter",
      "redirect_cmd" => "_xclick",
      "upload" => "1",
      "business" => PAYPAL_EMAIL,
      "receiver_email" => PAYPAL_EMAIL,
    "item_name" => $VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_LBL').": ".
$vendor_name,
      "order_id" => $transid,
      "invoice" => $order_number,
      "amount" => round( $paypal_total, 2),
      "shipping" => sprintf("%.2f", $shipping_total),
    "currency_code" => (!empty($_SESSION['product_currency']))?
$_SESSION['product_currency'] : $_SESSION['vendor_currency'],

      "address_override" => "1",
      "first_name" => $dbbt->f('first_name'),
      "last_name" => $dbbt->f('last_name'),
      "address1" => $dbbt->f('address_1'),
      "address2" => $dbbt->f('address_2'),


Generated by Jive SBS on 2010-11-14-08:00
                                                                                10
Integrating paypal into a website


        "zip" => $dbbt->f('zip'),
        "city" => $dbbt->f('city'),
        "state" => $dbbt->f('state'),
        "country" => $db1->f('country_2_code'),
        "email" => $dbbt->f('user_email'),
        "night_phone_b" => $dbbt->f('phone_1'),
        "cpp_header_image" => $vendor_image_url,

        "return" => $return_url . $order_number,
        "notify_url" => $notify_url,
        "cancel_return" => $cancel_return,
        "undefined_quantity" => "0",

        "test_ipn" => PAYPAL_DEBUG,
        "pal" => "NRUBJXESJTY24",
        "no_shipping" => "1",
        "no_note" => "1"
   );
}else{
//Form for using when Transaction already saved
   $tax_total = $db->f("order_tax") + $db->f("order_shipping_tax");
   $discount_total = $db->f("coupon_discount") + $db->f("order_discount");
   //Defines all input variables off form
   $post_variables = Array(
        "cmd" => "_xclick",
        "business" => PAYPAL_EMAIL,
        "receiver_email" => PAYPAL_EMAIL,
     "item_name" => $VM_LANG->_PHPSHOP_ORDER_PRINT_PO_NUMBER.": ". $db-
>f("order_id"),
        "order_id" => $db->f("order_id"),
        "invoice" => $db->f("order_number"),
        "amount" => round( $db->f("order_subtotal")+$tax_total-$discount_total, 2),
        "shipping" => sprintf("%.2f", $db->f("order_shipping")),
        "currency_code" => $_SESSION['vendor_currency'],


Generated by Jive SBS on 2010-11-14-08:00
                                                                                      11
Integrating paypal into a website



         "first_name" => $dbbt->f('first_name'),
         "last_name" => $dbbt->f('last_name'),
         "address_street" => $dbbt->f('address_1'),
         "address_zip" => $dbbt->f('zip'),
         "address_city" => $dbbt->f('city'),
         "address_state" => $dbbt->f('state'),
         "address_country" => $dbbt->f('country'),
         "image_url" => $vendor_image_url,
     "return" => SECUREURL ."index.php?
option=com_virtuemart&page=checkout.result&order_id=".$db->f("order_id"),
         "notify_url" => SECUREURL ."administrator/components/com_virtuemart/notify.php",
         "cancel_return" => SECUREURL ."index.php",
         "undefined_quantity" => "0",
         "test_ipn" => PAYPAL_DEBUG,
         "pal" => "NRUBJXESJTY24",
         "no_shipping" => "1",
         "no_note" => "1"
    );
}

//OLD WAY OF DOING chekout..... If in thankyou page then Transaction was already
confirmed and we redirect to PAYPAL
if( $page == "checkout.thankyou" ) {
    $query_string = "?";
    foreach( $post_variables as $name => $value ) {
         $query_string .= $name. "=" . urlencode($value) ."&";
    }
    vmRedirect( $url . $query_string );
} elseif ($page=="checkout.index" ) {
    // Generate The form for the checkout button
    ?>
    <script type="text/javascript">




Generated by Jive SBS on 2010-11-14-08:00
                                                                                            12
Integrating paypal into a website


      var VIRTUEMART_URL="administrator/components/com_virtuemart/
notify_gen_transaction.php";
      var VIRTUEMART_REQ_VAL ="save_transaction=1&transid=<?php echo $transid?>";
      var immoxmlhttp;
      var nb_tries=0;
      var max_tries=3;


     <?php if (GENERATE_TRANSACTION_ON_CONFIRMATION == 1) echo
'remove_original_submit_button();'; ?>


      function remove_original_submit_button(){
          document.adminForm.formSubmit.style.display="none";
          //document.getElementsByName("formSubmit")[1].style.display = "none";
      }


      function myXmlHttpReq(){
          if (window.XMLHttpRequest){
              var req = new XMLHttpRequest();
          }else if (window.ActiveXObject){
              var req = new ActiveXObject("Microsoft.XMLHTTP");
          }
          return req;
      }


      function sendReq(){
          immoxmlhttp = new myXmlHttpReq();
          immoxmlhttp.onreadystatechange = processCommentReqChange;
          immoxmlhttp.open("POST", VIRTUEMART_URL, true);
       immoxmlhttp.setRequestHeader("Content-Type","application/x-www-form-
urlencoded");
          immoxmlhttp.send(VIRTUEMART_REQ_VAL);
          setLoadingImg();
      }


Generated by Jive SBS on 2010-11-14-08:00
                                                                                  13
Integrating paypal into a website




      function setLoadingImg(){
          img_req='<img src="images/stories/spin.gif">';
          ldimgdiv=document.getElementById("loadimgdivid");
          ldimgdiv.innerHTML=img_req;
      }


      function validateAndSentForm(){
          if(submit_order( document.adminForm )){
       VIRTUEMART_REQ_VAL += "&customernote=" +
document.adminForm.customer_note.value;
              sendReq();
              return true;
          }
          else
              return false;
      }


      function processCommentReqChange(){
          if (immoxmlhttp.readyState == 4){
               try{
                 // only if "OK"
                 if (immoxmlhttp.status == 200){
                  //alert(immoxmlhttp.responseText);
                      var r=immoxmlhttp.responseText;
              var haserror=r.substring(r.indexOf("<error>"),r.indexOf("</
error>")).replace("<error>","");
                      if(haserror==1){
                 errmsg= r.substring(r.indexOf("<errormsg>"),r.indexOf("</
errormsg>")).replace("<errormsg>","");
                          alert(errmsg);
                      }
                      else{


Generated by Jive SBS on 2010-11-14-08:00
                                                                             14
Integrating paypal into a website


                        //we submit the form
                        //document.forms[2].submit();
                        //postform=document.getElementById("postfinanceformid");


              /*$transid = r.substring(r.indexOf("<errormsg>"),r.indexOf("</
errormsg>")).replace("<errormsg>","");
                   $form=document.getElementById("payment_method_form");
                   $form.order_id.value=$transid;
                   $form.invoice.value=$transid;
                        */
                        document.getElementById("payment_method_form").submit();
                        //postform.submit();
                    }
               }else{
                    if(nb_tries >= max_tries){
                        //Send an error message
                        ldimgdiv=document.getElementById("loadimgdivid");
                        ldimgdiv.innerHTML += ' Connection lost, retrying connection ... <br>';
                        nb_tries=0;
                    }else{
                        nb_tries++;
                    }
                    setTimeout('sendReq()', 3000);
               }
            }catch(E){
               alert(E);
               if(nb_tries >= max_tries){
                    ldimgdiv=document.getElementById("loadimgdivid");
                    ldimgdiv.innerHTML="Connection lost, retrying connection ...";
                    nb_tries=0;
               }else{
                    nb_tries++;



Generated by Jive SBS on 2010-11-14-08:00
                                                                                                  15
Integrating paypal into a website


                     }
                         setTimeout('sendReq()', 3000);
                 }
            }
        }


    </script>


    <?php
  // Close the Checkout Form, which was opened in the first checkout template using the
variable $basket_html
    echo '</form>';

    if (GENERATE_TRANSACTION_ON_CONFIRMATION == 1){
        echo '<form action="'.$url.'" method="post" id="payment_method_form">';
     echo '<div align="center" id="loadimgdivid"><input type="button"
name="confirmbutton" value="'.$VM_LANG->_('PHPSHOP_ORDER_CONFIRM_MNU').'"
onclick="return( validateAndSentForm());" class="button" style="align:middle;"></div>';
      //echo '<input type="image" name="submit" src="https://www.paypal.com/en_US/i/btn/
x-click-but6.gif" onclick="return( validateAndSentForm()) alt="Click to pay with PayPal - it is
fast, free and secure!" />';
     //<div id="loadimgdivid"><input type="button" name="confirmbutton"
value="Confirmer" onclick="return( validateAndSentForm() );" style="text-
align:middle;width:115px;height:15px;cursor:pointer;border:none;font-
weight:bold;color:#ffffff;font-size:10px;font-family:inherit;background: url('{TEMPLATEPATH}/
images/bouton.png') no-repeat top right transparent;margin-top:10px;"></div>
        foreach( $post_variables as $name => $value ) {
            echo '<input type="hidden" name="'.$name.'" value="'.htmlspecialchars($value).'" />
            ';
        }
        echo '</form>';
    }
}
//**** END FORM CREATION *****//




Generated by Jive SBS on 2010-11-14-08:00
                                                                                              16
Integrating paypal into a website


?>



I hope this helps and thank you very much for your help!



Denna



         PP_MTS_Magarvin 3,470 posts since
Nov 3, 2009 10. Re: Integrating paypal into a website Dec 4, 2009 8:05 AM

  in response to: Denna Shelton
Hi Denna Shelton



I replied to your previous post ( https://www.x.com/thread/39233?tstart=0 ). I believe it is
the same issue. Can you verify my response and reply to that post. Lets use that thread
instead.



Also, what I actually needed was the HTML code that your cart sends to PayPal, I guess I
was not clear enough in my reply. Below is an example of the HTML code. Your script looks
fine, I just want to see the end result.



<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
...........
...........

<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="test@test.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Name of Item">
<input type="hidden" name="amount" value="1.00">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
...........
.............

</form>



Generated by Jive SBS on 2010-11-14-08:00
                                                                                               17
Integrating paypal into a website




Thanks.



         Denna Shelton 6 posts since
Dec 3, 2009 11. Re: Integrating paypal into a website Dec 4, 2009 9:40 AM

  in response to: PP_MTS_Magarvin
Thank you for the reply. I'll post to the thread

you suggested.



20Gems



         Denna Shelton 6 posts since
Dec 3, 2009 12. Re: Integrating paypal into a website Dec 4, 2009 9:50 AM

  in response to: PP_MTS_Magarvin
The code I provided is what's in the 'Payment Extra Info' field in Virtuemart under 'Payment
Method Form - Configuration' which I thought was the HTML that accesses and posts to
PayPal.



The additional variables are as follow:



Test Mode? = No

PayPal Payment email: denna22@xxxxxxx.net (my PayPal email account login)

Order Status for successful transactions = Confirmed

Order Status for Pending Payments = Pending

Accept only verified buyers = No (selection for accepting payments from verfied PayPal
accounts only)

Order Status for failed transactions = Cancelled



Generated by Jive SBS on 2010-11-14-08:00
                                                                                               18
Integrating paypal into a website




Then the code I provided in the previous post is executed. I guess I'm not clear what you
mean by the HTML that passes data to PayPal. Where else would I find it?



Thanks so much!



20Gems



         PP_MTS_Magarvin 3,470 posts since
Nov 3, 2009 13. Re: Integrating paypal into a website Dec 4, 2009 11:00 AM

  in response to: Denna Shelton
Hi Denna Shelton,



Can you take a screen shot of the PayPal page that you are transferred to from your cart?
Post the screen shot here.



Thanks.



         patrick joubert 6 posts since
Nov 12, 2009 14. Re: Integrating paypal into a website Dec 4, 2009 3:13 PM

What is the URL to the main forums page?



also, I have the buttons working, I removed the 'target=paypal' so the cart opens in the same
browser. Awsome!




Generated by Jive SBS on 2010-11-14-08:00
                                                                                            19
Integrating paypal into a website


Once the user selects "proceed to checkout", how can I make the next page NOT show the
'login to paypal' that shows up on the right side of the screen. I want the user to see the 'Pay
with Credit Card' page instead.



and one more question..:)



How can I test this in the sandbox?



thanks again!



Patrick



         Wombat 1,981 posts since
Feb 14, 2008 15. Re: Integrating paypal into a website Dec 6, 2009 1:24 PM

  in response to: patrick joubert
patrick joubert



If you have set PP as an "option"...

i.e. Seller -> Profile -> Website Payment Preferences -> PayPal Account Optional = ON

...both forms will be available as....



1) If the customer has a PayPal account they most likely will have a cookie in their browser
which causes the display of just the PP login plus CCards by a simple link.



2) If the customer does not have a PP account and therefore no relevant cookie, they will
see BOTH CCard AND PP Login forms.



Generated by Jive SBS on 2010-11-14-08:00
                                                                                               20
Integrating paypal into a website




You do not see both because you obviuosly do have a PP account. To test either try a
payment with a different browser type, or delete the PP cookies from your primary browser.



PS Edit: for some sites the added <form attribute is more customer friendly leaving the last
page view open as last used (ie one recently used a product "slide" show). So that's why it is
included and you sorted it best for your preferences.



Regards,



-----------------------------------------------------------------

'imself. [ PHParagon.com ]

...bug free, my programs do occasionally include undisclosed FREE random features.




Message was edited by: Wombat



         patrick joubert 6 posts since
Nov 12, 2009 16. Re: Integrating paypal into a website Dec 7, 2009 11:42 AM

Great! this is working well.



Do I need to test it before I make it 'live' ?



also, is there a way to calculate shipping based on weight?



thanks again.



Generated by Jive SBS on 2010-11-14-08:00
                                                                                            21
Integrating paypal into a website




         PP_MTS_Chad 9,773 posts since
Sep 23, 2008 17. Re: Integrating paypal into a website Dec 7, 2009 11:55 AM

  in response to: patrick joubert
patrick joubert,



Whether you want to test or not is up to you. Testing is always good, just to make sure
everything is working how it should, or how you are expecting it to work. As for calculating
shipping, if you have a US account and are using standard you can set up a shipping profile
in your account based on weight. It will calculate shipping then based on weight as long as
you are passing over the weight for each item in your code. Otherwise, you could also use
either a script on your site that calculates the shipping and then passes it over to PayPal
when the customer checkouts out, or you could use a 3rd party shopping cart that works
with PayPal and has the shipping features you are needing.



         patrick joubert 6 posts since
Nov 12, 2009 18. Re: Integrating paypal into a website Dec 8, 2009 3:37 PM

  in response to: PP_MTS_Chad
We are using Website Payments Pro.



ok, I found the area to add shipping based on Weight, Amount and Total. But when I fill this
section out, my cart doesn't seem to add that amount to the total.



Originally, when I created the buttons I added $1.00 dollar as the shipping amount. This
$1.00 shows up in the cart (even though I thought I removed it from the button) instead of
the shipping amount based on "Weight" that I added in the 'shipping charges' area of 'my
profile'



Hope this makes sense.



Thanks again for your help.



Generated by Jive SBS on 2010-11-14-08:00
                                                                                             22
Integrating paypal into a website




         Norman Kaui 3 posts since
Apr 20, 2010 19. Re: Integrating paypal into a website Apr 20, 2010 8:39 PM

  in response to: PP_MTS_Magarvin
Hi Denna, I'm having a simlar issue where Virtuemart is passing incorrect country code.
Can you tell me how or where to find the html code Virtuemart is passing?



Thank you



         PP_MTS_Magarvin 3,470 posts since
Nov 3, 2009 20. Re: Integrating paypal into a website Apr 21, 2010 7:23 AM

  in response to: Norman Kaui
Hi Norman Kaui,



You can also check VirtueMart's forum at http://forum.virtuemart.net/index.php to see if you
can get this information if there is still no response.



Thanks.



         Norman Kaui 3 posts since
Apr 20, 2010 21. Re: Integrating paypal into a website Apr 21, 2010 12:34 PM

  in response to: PP_MTS_Magarvin
Thanks Margavin, I tried that but no one seems to have an answer. I've been working on
this issue for two days now with no results.



Paypal Merchant Tech support claims that we are passing the wrong country code.



I can't figure out how to verify this information or where to edit it. The checkout process
appears to be fine. Name, Address, City, State and Zipcode appear on paypals payment



Generated by Jive SBS on 2010-11-14-08:00
                                                                                              23
Integrating paypal into a website


page, but at the top of the page is a drop down menu where we need to manually select a
country. According to paypal merchant tech support that's because are country codes are
being passed incorrect.




Any advise would be greatly appreciated. Thank you.



         PP_MTS_Magarvin 3,470 posts since
Nov 3, 2009 22. Re: Integrating paypal into a website Apr 21, 2010 12:42 PM

  in response to: Norman Kaui
What is your website address?



         Norman Kaui 3 posts since
Apr 20, 2010 23. Re: Integrating paypal into a website Apr 21, 2010 2:42 PM

  in response to: PP_MTS_Magarvin
www.



         PP_MTS_Magarvin 3,470 posts since
Nov 3, 2009 24. Re: Integrating paypal into a website Apr 21, 2010 2:25 PM

  in response to: Norman Kaui
Can you PM me a test login I can use to go through the checkout on your website? Or can
you activate the test account I just created in your store so I can complete the purchase?



Thanks.

1 2 Previous Next




Generated by Jive SBS on 2010-11-14-08:00
                                                                                             24

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:131
posted:11/14/2010
language:English
pages:24
Description: Can Paypal Account Be Paid Using Credit Card document sample