Romnick Susa
Romnick Susa

Reputation: 1288

Choosing a Paypal Service

I am new in Laravel and my client wants me to integrate one of he Paypal services. There's so many services in Paypal and i don't know where to start.Please see the image below. I think this is not a express checkout where i usually use because the user only fill up a form with "order number" and "amount" field and then redirected to this Paypal interface. Please see this link of the image :

http://maverickpreviews.com/programming/royalgeelong/wp-content/uploads/2015/07/Paypal-Services.png

Can anyone describe what is the exact paypal service is that?

This is the current form: https://www.impressink.com/payment.php

This is what i tried in my Paypal Express Checkout controller

$stringwithmethodalready = '&Amt=79.95&ReturnUrl='.$returnURL .'&CANCELURL='.$cancelURL .'&PAYMENTACTION='.$paymentType .'&PAYMENTREQUEST_0_CURRENCYCODE='.$currencyID .'&PAYMENTREQUEST_0_INVNUM='.$testinvoice .'&PAYMENTREQUEST_0_ITEMAMT='.$testotal .'&PAYMENTREQUEST_0_TAXAMT='.$thetax .'&PAYMENTREQUEST_0_SHIPPINGAMT='.$theshipping .'&PAYMENTREQUEST_0_HANDLINGAMT='.$thehandling .'&PAYMENTREQUEST_0_SHIPDISCAMT='.$theshipdis .'&PAYMENTREQUEST_0_INSURANCEAMT='.$theinsurance .'&PAYMENTREQUEST_0_AMT='.$testotal. '&ALLOWNOTE=1&SOLUTIONTYPE=Sole';

Upvotes: 1

Views: 97

Answers (2)

Vimalnath
Vimalnath

Reputation: 6463

From the image it could be either express checkout or a Paypal payment standard integration.The invoice parameter is invoice for Paypal payment standard and PAYMENTREQUEST_n_INVNUM for express checkout.

  • PayPal button Parameter list here.
  • PayPal Express checkout Parameter list here.

This form https://www.impressink.com/payment.php is using Website Payment Standard Integration.

Foe EC, a sample SetExpressCheckout with Invoice,line item details would be:

VERSION = 109.0
METHOD = SetExpressCheckout
RETURNURL = http://www.google.com
CANCELURL = http://www.google.com
PAYMENTREQUEST_0_PAYMENTACTION= Sale
L_PAYMENTREQUEST_0_NAME0=1 Decaf Kona Blend Coffee  
L_PAYMENTREQUEST_0_NUMBER0=623083  
L_PAYMENTREQUEST_0_DESC0=Size: 8.8-oz 
L_PAYMENTREQUEST_0_AMT0=9.95  
L_PAYMENTREQUEST_0_QTY0=1

PAYMENTREQUEST_0_INVNUM = 12345
PAYMENTREQUEST_0_ITEMAMT=9.95
PAYMENTREQUEST_0_TAXAMT=0.00
PAYMENTREQUEST_0_AMT=9.95
PAYMENTREQUEST_0_CURRENCYCODE=USD  

When I used the above request, I get this enter image description here

Upvotes: 1

jpintor
jpintor

Reputation: 419

Maybe the param item_number works for you:

<input type="text" name="item_number" value="'.$order_id.'"> 

Checkout the rest of params Paypal standar params

Upvotes: 0

Related Questions