In the process of sandbox testing with the POS plusing and google checkout,

in the pos plugin, the 
instructions indicate in the model to add,

4) in your payment page add the button
 <img src="{{=URL(request.application,'plugin_google_checkout','button',
   dict(next='http://your.urlname.com'))}}" />


and the web2py-users group queries shows that this is older and won't work
anymore.


Could I get some help modifying what google wants to work with the pos app,
please?

they want this:

<form method="POST"
    
action="https://sandbox.google.com/api/checkout/api/checkoutForm/(sandbox_number)">

    <input type="image" name="Google Checkout" alt="Fast checkout through 
Google"
        
src="http://checkout.google.com/checkout/buttons/checkout.gif?merchant_id=(sandboxid_number)w=180&h=46&style=white&variant=text&loc=en_US"
 
height="46" width="180">
</form>

<form method="POST"
      
action="https://sandbox.google.com/checkout/api/checkout/v2/checkout/Merchant/sandboxid_number";>

  <input type="hidden" name="cart" value="REPLACE_WITH_ENCODED_CART"">
  <input type="hidden" name="signature" value="REPLACE_WITH_SIGNATURE">

  <!-- Button code -->
  <input type="image" name="Google Checkout"
 <!-- Button code -->
  <input type="image" name="Google Checkout"
       alt="Fast checkout through Google"
      
 
src="http://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=(sandbox_number)&w=180&h=46&style=white&variant=text&loc=en_US"
       height="46"
       width="180">
</form>



I've tried simply inserting cart_id and cart_xml as replacement values, but 
am
still getting errors in the sandbox. Here's an example of the error with 
cart_xml,

<error-message>Error decoding base64 data: Data found after trailing 
padding byte at index 5</error-message>
</error>



 Will this form above work with the pos and if so, how do I do that please?

Margaret

-- 



Reply via email to