Post by webmastercorey » Sun May 11, 2008 8:35 am

Okay, not very good at the whole changing opencart yet so I thought I'd bring what I got to the forums.

Essentially what I want to do is take advantage of paypals shopping cart variables. Currently open cart only sends a lump sum to paypal, but paypal has features that enable a page to send items to the paypal cart. These features would allow a user to have a better confirmation of their order so that they know exactly what they are paying for. These variables can easily be sent to paypal through hidden inputs. Go to https://www.paypal.com/IntegrationCente ... pload.html to see how all this works. I'll give an example below.

This would be an example cart sending multiple items to paypal's checkout:

Code: Select all

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
   <input type="hidden" name="cmd" value="_cart">//<----------------------------------------important change
   <input type="hidden" name="upload" value="1">//<------------------------------------------important change
   <input type="hidden" name="business" value="seller@designerfotos.com">
   <input type="hidden" name="item_name_1" value="Item Name 1">
   <input type="hidden" name="item_number_1" value="Product Model 1">
   <input type="hidden" name="amount_1" value="1.00">
   <input type="hidden" name="quantity_1" value="1">
   <input type="hidden" name="item_name_2" value="Item Name 2">
   <input type="hidden" name="item_number_2" value="Product Model 1">
   <input type="hidden" name="amount_2" value="2.00">
   <input type="hidden" name="quantity_2" value="3">
   <input type="submit" value="PayPal">
</form>
Get the idea?
So my terrible coding has got me editing the checkout_confirmation.tpl to allow for this. But I need to add shipping too. Any geniuses out there that could maybe configure the paypal.php extension to modify it for a shopping cart?

My current code just for ideas... You'll see that I've also taken advantage of the customization of paypal to integrate it into the opencart's design theme:
paypal.php

Code: Select all

	  $ouput  = '<input type="hidden" name="cmd" value="_cart" />' . "\n";
    $ouput .= '<input name="upload" type="hidden" value="1" />' . "\n";
		$ouput .= '<input type="hidden" name="business" value="' . $this->config->get('paypal_email') . '" />' . "\n";
      
		$ouput .= '<input type="hidden" name="currency_code" value="' . $currency . '" />' . "\n";
		$ouput .= '<input type="hidden" name="first_name" value="' .  $this->order->get('firstname') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="last_name" value="' . $this->order->get('lastname') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="address1" value="' . $this->order->get('payment_address_1') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="address2" value="' . $this->order->get('payment_address_2') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="city" value="' . $this->order->get('payment_city') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="zip" value="' . $this->order->get('payment_postcode') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="country" value="' . $this->order->get('payment_country') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="address_override" value="0" />' . "\n";
		$ouput .= '<input type="hidden" name="notify_url" value="' . $this->url->ssl('checkout_process', 'callback', array('payment' => 'paypal')) . '" />' . "\n";
		$ouput .= '<input type="hidden" name="email" value="' . $this->order->get('email') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="invoice" value="' . $this->order->getReference() . '" />' . "\n";
		$ouput .= '<input type="hidden" name="lc" value="' . $this->language->getCode() . '" />' . "\n";
		$ouput .= '<input type="hidden" name="return" value="' . $this->url->ssl('checkout_process') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="rm" value="2" />' . "\n";
		$ouput .= '<input type="hidden" name="no_note" value="1" />' . "\n";
		$ouput .= '<input type="hidden" name="cancel_return" value="' . $this->url->ssl('checkout_payment') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="paymentaction" value="authorization" />' . "\n";
checkout_confirmation.tpl

Code: Select all

    
<form action="<?php echo $payment_url; ?>" name="_xclick" method="post" enctype="multipart/form-data">
  <?php if ($fields) { ?>
  <div class="a"><?php echo $fields; ?>
    <?php foreach ($products as $key => $product) { 
    $product['key'] = $key + 1;
    echo '<input type="hidden" name="item_name_' . $product['key'] . '" value="' . $product['name'] . '" />' . "\n";
    echo '<input type="hidden" name="item_number_' . $product['key'] . '" value="' . $product['model'] . '" />' . "\n";
    echo '<input type="hidden" name="amount_' . $product['key'] . '" value="' . $product['price'] . '" />' . "\n";
    echo '<input type="hidden" name="quantity_' . $product['key'] . '" value="' . $product['quantity'] . '" />' . "\n";
    }?>
    <input name="cpp_header_image" type="hidden" value="http://www.solidrockunltd.com/catalog/template/default/image/paypal-header.jpg" />
    <input name="cpp_payflow_color" type="hidden" value="#cbe2f1" />
    <input name="cpp_headerborder_color" type="hidden" value="#cbe2f1" />
  </div>
  <?php } ?>
  <?php if (isset($agree)) { ?>
  <div class="buttons">
    <table>
      <tr>
        <td align="left"><input type="button" value="<?php echo $button_back; ?>" onclick="location='<?php echo $back; ?>'" /></td>
        <td align="right"><?php echo $agree; ?></td>
        <td align="right" width="5"><input type="checkbox" name="agreed" value="1" onclick="document.getElementById('submit').disabled = (this.checked == true) ? false : true;" /></td>
        <td align="right" width="5"><input type="submit" value="<?php echo $button_continue; ?>" id="submit" disabled /></td>
      </tr>
    </table>
  </div>
  <?php } else { ?>
  <div class="buttons">
    <table>
      <tr>
        <td align="left"><input type="button" value="<?php echo $button_back; ?>" onclick="location='<?php echo $back; ?>'" /></td>
        <td align="right"><input type="submit" value="<?php echo $button_continue; ?>" /></td>
      </tr>
    </table>
  </div>
  <?php } ?>
</form>
Last edited by webmastercorey on Sun May 11, 2008 8:38 am, edited 1 time in total.

New member

Posts

Joined
Sat Apr 26, 2008 5:40 pm

Post by Luvz2drv » Sun May 11, 2008 9:44 am

okay good steps...  but what happens when customer orders 10 items from your store...  then goes to the paypal cart as it is and changes it to 1 --  now your payment will not match the invoice and if you use the callback from paypal it will mark the order are paid status..

make sure that the TOTAL sent to paypal is equal to the total received in the response back..  but i can see issues with using 2 cart check outs basically.

Global Moderator

Posts

Joined
Fri Mar 21, 2008 10:58 am

Post by webmastercorey » Sun May 11, 2008 10:03 am

How can they do that? If you send the amount total there is no field at the paypal cart. Got to www.solidrockunltd.com, I think i got a sloppy working version, there is no edit field for the user with the cart option.

I added this to checkout_confirmation.tpl

Code: Select all

if (!$product['discount']) { 
    echo '<input type="hidden" name="amount_' . $product['key'] . '" value="' . $product['price'] . '" />' . "\n";
    } else { 
    echo '<input type="hidden" name="amount_' . $product['key'] . '" value="' . $product['discount'] . '" />' . "\n";
    }
    
    echo '<input type="hidden" name="quantity_' . $product['key'] . '" value="' . $product['quantity'] . '" />' . "\n";
    }
    foreach ($totals as $key => $total) {
      if ($key == 1) {
      echo '<input type="hidden" name="shipping_1" value="' . $total['text'] . '" />' . "\n";
      }
    }
To grab the code and discount if there is one... and the shipping... really sloppy. But gets it done, lol
Last edited by webmastercorey on Sun May 11, 2008 10:11 am, edited 1 time in total.

New member

Posts

Joined
Sat Apr 26, 2008 5:40 pm

Post by Lorne » Tue May 13, 2008 11:49 pm

webmastercorey wrote: How can they do that? If you send the amount total there is no field at the paypal cart. Got to www.solidrockunltd.com, I think i got a sloppy working version, there is no edit field for the user with the cart option.

I added this to checkout_confirmation.tpl

Code: Select all

if (!$product['discount']) { 
    echo '<input type="hidden" name="amount_' . $product['key'] . '" value="' . $product['price'] . '" />' . "\n";
    } else { 
    echo '<input type="hidden" name="amount_' . $product['key'] . '" value="' . $product['discount'] . '" />' . "\n";
    }
    
    echo '<input type="hidden" name="quantity_' . $product['key'] . '" value="' . $product['quantity'] . '" />' . "\n";
    }
    foreach ($totals as $key => $total) {
      if ($key == 1) {
      echo '<input type="hidden" name="shipping_1" value="' . $total['text'] . '" />' . "\n";
      }
    }
To grab the code and discount if there is one... and the shipping... really sloppy. But gets it done, lol
Can you show us how you added this to the checkout_confirmation.tpl page as I am sure others would like to see a full working version of it.

Thanks, your other code is working good! :)

Lorne

Newbie

Posts

Joined
Tue May 13, 2008 10:57 pm

Post by webmastercorey » Wed May 14, 2008 3:24 am

Alright the full hack. Keep in mind, this script does not allow the coupon code at this time:

In /catalog/extension/payment/paypal.php
Replace this (lines 69-90):

Code: Select all

	  	$ouput  = '<input type="hidden" name="cmd" value="_xclick" />' . "\n";
		$ouput .= '<input type="hidden" name="business" value="' . $this->config->get('paypal_email') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="item_name" value="' . $this->config->get('config_store') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="currency_code" value="' . $currency . '" />' . "\n";
		$ouput .= '<input type="hidden" name="amount" value="' . $this->currency->format($this->order->get('total'), $currency, FALSE, FALSE) . '" />' . "\n";
		$ouput .= '<input type="hidden" name="first_name" value="' .  $this->order->get('firstname') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="last_name" value="' . $this->order->get('lastname') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="address1" value="' . $this->order->get('payment_address_1') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="address2" value="' . $this->order->get('payment_address_2') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="city" value="' . $this->order->get('payment_city') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="zip" value="' . $this->order->get('payment_postcode') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="country" value="' . $this->order->get('payment_country') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="address_override" value="0" />' . "\n";
		$ouput .= '<input type="hidden" name="notify_url" value="' . $this->url->ssl('checkout_process', 'callback', array('payment' => 'paypal')) . '" />' . "\n";
		$ouput .= '<input type="hidden" name="email" value="' . $this->order->get('email') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="invoice" value="' . $this->order->getReference() . '" />' . "\n";
		$ouput .= '<input type="hidden" name="lc" value="' . $this->language->getCode() . '" />' . "\n";
		$ouput .= '<input type="hidden" name="return" value="' . $this->url->ssl('checkout_process') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="rm" value="2" />' . "\n";
		$ouput .= '<input type="hidden" name="no_note" value="1" />' . "\n";
		$ouput .= '<input type="hidden" name="cancel_return" value="' . $this->url->ssl('checkout_payment') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="paymentaction" value="authorization" />' . "\n";
With this:

Code: Select all

	  	$ouput  = '<input type="hidden" name="cmd" value="_cart" />' . "\n";
    	$ouput .= '<input name="upload" type="hidden" value="1" />' . "\n";
		$ouput .= '<input type="hidden" name="currency_code" value="' . $currency . '" />' . "\n";
		$ouput .= '<input type="hidden" name="first_name" value="' .  $this->order->get('firstname') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="last_name" value="' . $this->order->get('lastname') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="address1" value="' . $this->order->get('payment_address_1') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="address2" value="' . $this->order->get('payment_address_2') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="city" value="' . $this->order->get('payment_city') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="zip" value="' . $this->order->get('payment_postcode') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="country" value="' . $this->order->get('payment_country') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="address_override" value="0" />' . "\n";
		$ouput .= '<input type="hidden" name="notify_url" value="' . $this->url->ssl('checkout_process', 'callback', array('payment' => 'paypal')) . '" />' . "\n";
		$ouput .= '<input type="hidden" name="email" value="' . $this->order->get('email') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="invoice" value="' . $this->order->getReference() . '" />' . "\n";
		$ouput .= '<input type="hidden" name="lc" value="' . $this->language->getCode() . '" />' . "\n";
		$ouput .= '<input type="hidden" name="return" value="' . $this->url->ssl('checkout_process') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="rm" value="2" />' . "\n";
		$ouput .= '<input type="hidden" name="no_note" value="1" />' . "\n";
		$ouput .= '<input type="hidden" name="cancel_return" value="' . $this->url->ssl('checkout_payment') . '" />' . "\n";
		$ouput .= '<input type="hidden" name="paymentaction" value="authorization" />' . "\n";
In /catalog/template/default/content/checkout_confirmation.tpl
Replace this (lines 79-116):

Code: Select all

<div class="e">
    <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
      <table width="100%">
        <tr>
          <td class="right"><?php echo $entry_coupon; ?></td>
          <td class="right" width="1"><input type="text" name="coupon" value="<?php echo $coupon; ?>" /></td>
          <td class="right" width="1"><input type="submit" value="<?php echo $button_update; ?>" /></td>
        </tr>
      </table>
    </form>
  </div>
</div>
<form action="<?php echo $payment_url; ?>" method="post" enctype="multipart/form-data">
  <?php if ($fields) { ?>
  <div class="a"><?php echo $fields; ?></div>
  <?php } ?>
  <?php if (isset($agree)) { ?>
  <div class="buttons">
    <table>
      <tr>
        <td align="left"><input type="button" value="<?php echo $button_back; ?>" onclick="location='<?php echo $back; ?>'" /></td>
        <td align="right"><?php echo $agree; ?></td>
        <td align="right" width="5"><input type="checkbox" name="agreed" value="1" onclick="document.getElementById('submit').disabled = (this.checked == true) ? false : true;" /></td>
        <td align="right" width="5"><input type="submit" value="<?php echo $button_continue; ?>" id="submit" disabled /></td>
      </tr>
    </table>
  </div>
  <?php } else { ?>
  <div class="buttons">
    <table>
      <tr>
        <td align="left"><input type="button" value="<?php echo $button_back; ?>" onclick="location='<?php echo $back; ?>'" /></td>
        <td align="right"><input type="submit" value="<?php echo $button_continue; ?>" /></td>
      </tr>
    </table>
  </div>
  <?php } ?>
</form>
With this:

Code: Select all

  <!--
  <div class="e">
    <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
      <table width="100%">
        <tr>
          <td class="right"><?php echo $entry_coupon; ?></td>
          <td class="right" width="1"><input type="text" name="coupon" value="<?php echo $coupon; ?>" /></td>
          <td class="right" width="1"><input type="submit" value="<?php echo $button_update; ?>" /></td>
        </tr>
      </table>
    </form>
  </div>-->
</div>
<form action="<?php echo $payment_url; ?>" name="_xclick" method="post" enctype="multipart/form-data">
  <?php if ($fields) { ?>
  <div class="a"><?php echo $fields; ?>
    <?php 
    foreach ($products as $key => $product) { 
    $product['key'] = $key + 1;
    echo '<input type="hidden" name="item_name_' . $product['key'] . '" value="' . $product['name'] . '" />' . "\n";
    echo '<input type="hidden" name="item_number_' . $product['key'] . '" value="' . $product['model'] . '" />' . "\n";
    
    if (!$product['discount']) { 
    echo '<input type="hidden" name="amount_' . $product['key'] . '" value="' . $product['price'] . '" />' . "\n";
    } else { 
    echo '<input type="hidden" name="amount_' . $product['key'] . '" value="' . $product['discount'] . '" />' . "\n";
    }
    
    echo '<input type="hidden" name="quantity_' . $product['key'] . '" value="' . $product['quantity'] . '" />' . "\n";
    }
    foreach ($totals as $key => $total) {
      if ($key == 1) {
      echo '<input type="hidden" name="shipping_1" value="' . $total['text'] . '" />' . "\n";
      }
    }
    ?>
    <input name="cpp_header_image" type="hidden" value="http://www.yourdomain.com/catalog/template/default/image/paypal-header.jpg" />
    <input name="cpp_payflow_color" type="hidden" value="#cbe2f1" />
    <input name="cpp_headerborder_color" type="hidden" value="#cbe2f1" />
  </div>
  <?php } ?>
  <?php if (isset($agree)) { ?>
  <div class="buttons">
    <table>
      <tr>
        <td align="left"><input type="button" value="<?php echo $button_back; ?>" onclick="location='<?php echo $back; ?>'" /></td>
        <td align="right"><?php echo $agree; ?></td>
        <td align="right" width="5"><input type="checkbox" name="agreed" value="1" onclick="document.getElementById('submit').disabled = (this.checked == true) ? false : true;" /></td>
        <td align="right" width="5"><input type="submit" value="<?php echo $button_continue; ?>" id="submit" disabled /></td>
      </tr>
    </table>
  </div>
  <?php } else { ?>
  <div class="buttons">
    <table>
      <tr>
        <td align="left"><input type="button" value="<?php echo $button_back; ?>" onclick="location='<?php echo $back; ?>'" /></td>
        <td align="right"><input type="submit" value="<?php echo $button_continue; ?>" /></td>
      </tr>
    </table>
  </div>
  <?php } ?>
</form>
Also in the above code in checkout_confirmation.tpl you'll need to change these three lines to match your site:

Code: Select all

    
<input name="cpp_header_image" type="hidden" value="http://www.yourdomain.com/catalog/template/default/image/paypal-header.jpg" />
<input name="cpp_payflow_color" type="hidden" value="#cbe2f1" />
<input name="cpp_headerborder_color" type="hidden" value="#cbe2f1" />
There you go.
Tell me if it works for you.
I'm trying to make this a bit more stable and clean and allow the coupon discount. But it will take me awhile. At least someone knows what I'm kinda doing, perhaps they can figure it out.
Last edited by webmastercorey on Wed May 14, 2008 3:25 am, edited 1 time in total.

New member

Posts

Joined
Sat Apr 26, 2008 5:40 pm

Post by Lorne » Wed May 14, 2008 8:05 pm

Ok, the works good but only if you set shipping for each product, or under the shipping section. But if you dont set the shipping for the product it takes that value which is the value of the product and uses that for shipping instead of value 0 which it should be if you dont want to add shipping for a particular product.

Anyways I will work with you on trying to get this code right and the coupon as well if you want, I am kinda new at this php stuff but I have enough other coding exp I think I could manage this once I know how everything works.

Let me know if you have anything else to show everyone, and I will do the same.

Lorne

Newbie

Posts

Joined
Tue May 13, 2008 10:57 pm

Post by webmastercorey » Tue May 20, 2008 1:13 am

I'll look into it. You mean if shipping is turned off for the entire store? The code I have isn't the best, like i said. What it does is select the shipping from the totals array. If there is no shipping it will take whatever is the second object in the array.

Code: Select all

 foreach ($totals as $key => $total) {
      if ($key == 1) {
      echo '<input type="hidden" name="shipping_1" value="' . $total['text'] . '" />' . "\n";
      }

New member

Posts

Joined
Sat Apr 26, 2008 5:40 pm

Post by lev » Wed Jun 04, 2008 4:18 am

Very Nice!

I made two little changes;

in library/cart/calculate.php:
added function to calculate certain aspects of the totals:

Code: Select all

function getTotal($total_type) {
		$total_data = array();
		foreach (array_keys($this->data) as $key) {
			if($key == $total_type){
				$results =  $this->data[$key]->calculate();
				
				foreach ($results as $result) {
		    		$total_data[] = array(
			  			'title'      => $result['title'],
			  			'text'       => $result['text'],
			  			'value'      => $result['value']
						
		    		); 					
	  			}
				if(sizeof($total_data) > 0){
					return $total_data[0];
				}
			}
		}
		
  	}
and in catalog/controller/checkout_confirm.php added

Code: Select all

$shipping_totals = $calculate->getTotal('shipping');
		$tax_totals = $calculate->getTotal('tax');
		
		$view->set('total_tax', $tax_totals['value']);
		$view->set('total_shipping', $shipping_totals['value']);	
right after

Code: Select all

$view->set('totals', $totals);
~(line 150)

and in template/[TEMPLATE_NAME]/content/checkout_confirm.tpl

replaced :

Code: Select all

foreach ($totals as $key => $total) {
      if ($key == 1) {
      echo '<input type="hidden" name="shipping_1" value="' . $total['text'] . '" />' . "\n";
      }
with

Code: Select all

	echo '<input type="hidden" name="shipping_1" value="' . $total_shipping . '" />' . "\n";
		echo '<input type="hidden" name="tax_1" value="' . $total_tax . '" />' . "\n";

lev
New member

Posts

Joined
Wed Apr 30, 2008 10:47 pm

Post by JaturontThan » Mon Oct 20, 2008 6:27 pm

This are no longer working for version 0.7.9RC2... Anyone has an update on this topic ?

Newbie

Posts

Joined
Sat Aug 30, 2008 4:46 am

Post by Qphoria » Mon Oct 20, 2008 7:18 pm

0.7.9.RC2 has the new paypal improved module, so some of these file changes may differ slightly, as well as some of the ways the totals are calculated.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by bruce » Mon Oct 20, 2008 8:53 pm

It is not that difficult if you follow the paypal API documentation. The real killer that makes this a waste of time in the most general case is that paypal will not allow you to have a negative amount for any item (so no discounts for coupons as mentioned earlier)

I had done this before but abandoned it as having little value for opencart. I cannot even find the code to show you ... sorry

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by SoCal » Thu Nov 13, 2008 4:22 am

Qphoria said:
--------------------------------------------------------------------------------
0.7.9.RC2 has the new paypal improved module, so some of these file changes may differ slightly, as well as some of the ways the totals are calculated.


Here we go Qphoria:  I've been looking around everywhere before I started hounding you.
I'm using 7.9RC3  ( as I mentioned in another post/question  I do have both a paypal account and authorize.net ...separate question there) 

Anyways ... I am  completely confused as to how to intiate the  PayPal setup integration.
I am going to the admin/extensions/paypal/configure

but it's not really asking anything that would setup or refer to  my specific paypal account ... or is it merely the email address ?  I thought that was just for forwarding the orders.

Do I need to download some sort of paypal contribution from Bruce ?




... ?

New member

Posts

Joined
Fri Nov 07, 2008 3:23 pm

Post by Qphoria » Thu Nov 13, 2008 4:33 am

Click on the wrench/spanner icon and enter your paypal email.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by SoCal » Thu Nov 13, 2008 5:00 am

qphoria ,  whats up with the Paypal contribution from bruce.  is that an enhancement of some sort.

Right now I will download and set up the authorize.net modual.

socal

New member

Posts

Joined
Fri Nov 07, 2008 3:23 pm

Post by Qphoria » Thu Nov 13, 2008 5:16 am

The paypal improved (as it were) does a little more behind the scenes. It is actually part of the core now in 0.7.9 RC2 and later

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by SoCal » Thu Nov 13, 2008 5:33 am

How about your authorize.net AIM download.  Is that part of the .079cr3  core ,  or should I download
and integrate.  ( I didn't see it anywhere in my file structure)

New member

Posts

Joined
Fri Nov 07, 2008 3:23 pm

Post by Qphoria » Thu Nov 13, 2008 7:06 am

No the only actual contribs that were merged into 0.7.9 were
- min order qty
- paypal improved

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by SoCal » Thu Nov 13, 2008 7:22 am

Q,

I got this from PayPal (shortly after your earlier response  when  you said that 7.9 had the paypal bit embedded in the core, ... I had emailed them earlier in the a.m.)

Should I be concerned with this or is it already addressed in the revised core ... and I should disregard

I was especially focusing on the part that says "You will need to post
this information to our system using our upload variable. You will need
to use the variables that we have defined in our system and not your own
for our system to recognize the information."


ENTIRE BIT FROM PAYPAL

You will need to post
this information to our system using our upload variable. You will need
to use the variables that we have defined in our system and not your own
for our system to recognize the information. You will need to post your
value to the values of our variables. Below you will see the minimal
variables needed.



The minimal variables needed are:










New member

Posts

Joined
Fri Nov 07, 2008 3:23 pm

Post by Qphoria » Thu Nov 13, 2008 7:31 am

I'm not sure of your question. All paypal modules in all ecommerce scripts have the same information and use the same paypal api. Even the old opencart paypal module. The improved version just does some state changes when using IPN or something. I really don't understand the changes, but maybe bruce can explain them better. There's nothing that you need to do but change your paypal email in the configuration area.
Last edited by Qphoria on Thu Nov 13, 2008 7:33 am, edited 1 time in total.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by SoCal » Thu Nov 13, 2008 8:29 am

well .... after receiving your comment above I went ahead and put in my paypal acct email address ...

and submitted an order.  ( I thought I did it in test mode but now I can find where I toggled that option.... it's been a long day ... could have been my imaginationi)

in any event....

and this popped up.
https://www.sandbox.paypal.com/cgi-bin/webscr

To access the PayPal Sandbox, please log in to PayPal Developer Central.


any ideas ... ? 

New member

Posts

Joined
Fri Nov 07, 2008 3:23 pm
Who is online

Users browsing this forum: No registered users and 27 guests