Loading...

Integrating PayPal into SAP Hybris

Hybris is a subsidiary of German software company SAP. It is headquartered in Zug, Switzerland. This SAP Hybris is used for enterprise, e-commerce, multichannel e-commerce and product content management (PCM) software. Hybris was founded in the year of 1997 by Mr. Carsten Thoma, Moritz Zimmermann and Klaas Hermanns.
Integrating PayPal into SAP Hybris

Integrating PayPal into SAP Hybris e-commerce suite

At First we have to create a PayPal extension in Hybris by using ANT extgen. After creating go through with below steps:
  • Create a seller and also a buyer account in PayPal sandbox environment. “www.sandbox.paypal.com.”
  • Download the certificate for the seller account for accessing the API.
  • Do the transaction by using Express Checkout API.
  • Express checkout API consists of three parts:
      • SetExpressCheckout
      • GetExpressCheckout
      • DoExpressCheckout.

Integrating PayPal into SAP Hybris
  • Request DTO’s are created for SetExpressCheckout, GetExpressCheckout, and   DoExpressCheckout.
  • Response DTO’s are created for SetExpressCheckout, GetExpressCheckout, and DoExpressCheckout.
  • Service classes are created for SetExpressCheckout, GetExpressCheckout, and DoExpressCheckout.
  • During the first call or during the first request to Express Checkout we pass the following parameters:
      • Total amount
      • Currency code
      • Return URL
      • Cancel URL
      • Payment action.
  • As an Acknowledgment, it returns a Token in the form of response.
  • During the second call or request to the Express checkout, the token is appended with sandbox URL and the customer is redirected to the sandbox site.
  • As response PayPal returns Token, Payer ID, and Email ID.
  • During the third call or request to Express Checkout we pass the following parameters:
      • Total amount
      • Currency code
      • Payment action
      • Token
      • Payer ID.
  • As response PayPal returns Transaction ID, Transaction Status and Pending Reason.
  • Mention the API username, API password, Certificate path and Proxy settings in local. properties.
  • In order to confirm the completion of transaction, log into the PayPal buyer account and check the payment details.

virtualnuggets 3539067464857947952

Post a Comment

emo-but-icon

Home item

Blog Archive

Popular Posts

Random Posts

Flickr Photo