Welcome to the Intershop PayPal Service Connector. The service connector adds PayPal payment methods to your Intershop Commerce Management installation.
This release note provides important product information, including version information and dependencies. It also outlines the basic setup and configuration steps.
This delivery and the accompanying documentation are valid for the following combinations of software versions:
Intershop CM | PWA | PayPal Service Connector | PayPal Core API | PayPal Merchant SDK |
---|---|---|---|---|
7.10.31.x+ (Tomcat 9) | 0.29.0+ | 6.0.0 - 6.0.4 | 1.7.2 | 2.15.122 |
7.10.38.9+ | 3.0.0+ | 6.1.1+ | 1.7.2 | 2.15.122 |
The PayPal Service Connector 6 is based on the Payment API introduced in Intershop Commerce Management 7.6.1.
The table below provides information about the cartridges included in the package. Not all of these cartridges are required.
Cartridge | Description | Required |
---|---|---|
ac_payment_paypal | Includes all base functionality and business logic which is used both in the storefront and the Commerce Management application Enables PayPal payment connector for the following application type:
| |
as_responsive_paypal | Enables PayPal payment connector for the following application types:
The cartridge is optional, can be downloaded separately from Intershop Product Calendar and may be included if the project uses the Responsive Starter Store. Unzip the file to your multi-project folder next to your responsive source files. It can be skipped if the custom project does not support these application types or PayPal is not required in these application types. | |
app_sf_responsive_paypal | Includes some additional functionality which is relevant for the responsive storefront reference application only, e.g., the integration of the hosted payment pages of the credit card. The cartridge is optional, can be downloaded separately from Intershop Product Calendar and may be included in case the project is based on the responsive storefront reference application. Unzip the file to your multi-project folder next to your responsive source files. The referenced cartridge app_sf_responsive may be renamed in the project and has to be referenced in the build.gradle file with the customized naming again. |
The PayPal Service Connector 6.+ is based on the Payment API introduced in IS 7.6.
The sources for as_responsive_paypal and app_sf_responsive_paypal are available here
...YOUR_REPOSITORY.../releases/com.intershop.public.source/s_payment_paypal/6.1.1/zips/s_payment_paypal-zip-src-6.1.1.zip
The PayPal Service Connector can be used for the following application types:
Application Type | Application Type ID | Compatible | Description |
---|---|---|---|
B2C WebShop |
| Business to Consumer Channel | |
SMB WebShop |
| Business to Business Channel WarningOnly applicable if the order approval is disabled! | |
Progressive Web App |
| B2C/B2B via REST |
This section outlines the basic setup and configuration steps, including
Note
Managing and deploying the PayPal Service Connector requires a continuous integration environment being set up and configured as described in Cookbook - Setup CI Infrastructure (valid to Gradle Tools 2.7).
A set up and configured CI environment:
See Cookbook - Setup CI Infrastructure (valid to Gradle Tools 2.7) for details
See Concept - Continuous Delivery Tools (valid to 7.10) for basic information about Continuous Integration (CI)
A running Intershop Commerce Management 7.10 installation that matches the system requirements
Knowledge of how to add the delivered artifacts to the continuous integration environment
Knowledge of how to deploy to a test or production environment
The package is available via Intershop's public Artifactory.
To add the PayPal Service Connector to your Intershop Commerce Management system, you may either:
Incorporate the cartridge into an already existing assembly. To do so, perform the following steps:
Add the following in the build.gradle file of the assembly:
build.gradle
cartridges { def paypalPaymentProvider = [ 'ac_payment_paypal', // these are the two cartridges, which we delivered in source code and you have to add these files to your responsive source project 'as_responsive_paypal', 'app_sf_responsive_paypal' ] include (*(paypalPaymentProvider.collect {"com.intershop.services.payment_paypal:$it"}), in: [development, test, production]) ... order = listFromAssembly(<yourAssembly>) + paypalPaymentProvider }
Adapt the app_sf_responsive_paypal/build.gradle file in the following way:
app_sf_responsive_paypal/build.gradle file
apply plugin: 'static-cartridge' apply plugin: 'com.intershop.gradle.isml' intershop { displayName = 'Adapter Cartridge for Paypal Payment' packages { cartridge { srcDir(isml2classMain) } } } dependencies { //compile project(':ac_payment_paypal') --> will be replaced by compile group: 'com.intershop.services.payment_paypal', name: 'ac_payment_paypal' }
Adjust the file as_responsive_paypal/build.gradle in a similar way:
as_responsive_paypal/build.gradle file
apply plugin: 'static-cartridge' intershop { displayName = 'As_responsive_paypal' staticLibs = fileTree(dir: staticCartridgeLibFolder, include: '*.jar') } dependencies { //compile project(':ac_payment_paypal') --> will be replaced by compile group: 'com.intershop.services.payment_paypal', name: 'ac_payment_paypal' compile project(':app_sf_responsive_paypal') }
Insert the following lines into the file intershopBuild.version to consume the desired version (e.g. 6.0.4):
intershopBuild.version
com.intershop.services.payment_paypal:ac_payment_paypal = 6.0.4
For details about adding components to an assembly, see Cookbook - Gradle Assembly Tools.
Or:
Create a new assembly inheriting from an Intershop Commerce Management system-based assembly.
For details about creating a new assembly, see Recipe: Create a New Assembly Inheriting From an Existing Assembly.
For details about managing assembly artifacts, see:
Before deploying the new assembly to a test or production environment, you may have to adjust some file-based configurations required by the PayPal Service Connector.
The PayPal Service Connector requires the following settings:
Property | Description | Value |
---|---|---|
intershop.payment.PAYPAL_STANDARD.currencies | Defines which currencies are configurable for PayPal Standard. Default: EUR,AUD,GBP,DKK,HKD,JPY,CAD,MXN,ILS,NZD,NOK,PLN,SEK,CHF,SGD,CZK,HUF,USD | comma separated list, e.g., EUR, USD |
intershop.payment.PAYPAL_EXPRESS.currencies | Defines which currencies are configurable for PayPal Express Default: EUR,AUD,GBP,DKK,HKD,JPY,CAD,MXN,ILS,NZD,NOK,PLN,SEK,CHF,SGD,CZK,HUF,USD | comma separated list, e.g., EUR, USD |
According to Recipe: Change Deployed File Content With Filters this setting has to be overridden within <IS_SHARE>/system/config/cartridges/ac_payment_paypal.properties.
For details about adding new configuration files, see Recipe: Deploy Custom Files.
After having created and appropriately having configured the assembly, you must deploy it to the intended target environment.
For details about deploying an assembly, see Recipe: Run the Deployment (Initial Installation / Upgrade / Downgrade).
Note
The PayPal Service Connector requires additional post-deployment configuration steps. For details, refer to Configuration.
The consequent redirects to PayPal (those after the initial redirect) are done after significant cart changes. What is significant in a cart is defined by the class:
com.intershop.adapter.payment.paypal.internal.basket.BasketHashCodeGenerator
@Named("PayPal_BasketHashCodeGenerator") public class BasketHashCodeGenerator implements Function<BasketBO, String>
It gets the current BasketBO and creates a hash based on what it considers to be significant.
At some stages of the checkout (payment and review pages) a hash is generated again and if there is a mismatch with the initial hash, the customer will be redirected to PayPal again.
To change the definition of what is significant in a cart:
Create your own class YourCustomBasketHashCodeGenerator
implementing Function<BasketBO, String>
, which generates a hash based on what you consider significant.
Bind the new class in your customization Guice module.
bind(new TypeLiteral<Function<BasketBO, String>>() { }).annotatedWith(BasketHashCodeGenerator.class.getAnnotation(Named.class)) .to(YourCustomBasketHashCodeGenerator.class).in(Singleton.class);
This section outlines the required post-deployment configuration steps, including:
Configuration - PayPal Service Connector 6 | Adjusting Firewall Settings
Configuration - PayPal Service Connector 6 | Applying UI Based Configuration
Adjust your firewall settings according to PayPal's Go Live Checklist.
The PayPal Service Connector requires some post-deployment configurations in Organization Management application and Commerce Management application.
For details about enabling a payment service, see - Recipe: Enable a Payment Service.
The table below lists PayPal-specific settings you can enter at the payment service.
Name | Description |
---|---|
User Name | Your PayPal seller account's username. |
Password | Your PayPal seller account's password. |
Signature | Your PayPal seller account's signature. |
Environment | Switch between test and live system. Options: live, sandbox, and beta-sandbox. |
Logo URL | The URL of the logo that will be displayed on the PayPal page after redirect. |
Branding ID | The heading that will be displayed on the PayPal page after redirect. Overrides the logo parameter. |
Page Layout | The identifier of the preconfigured page style that will be used for the PayPal page after redirect. Overrides the logo parameter. |
Auto Capture | If enabled, the amounts will be automatically captured with the authorization. |
Allow PayPal address update | If enabled, the customer can update the shipping address via the PayPal page. This does not apply to orders which contain multiple shipping buckets. For those, the address update is always disabled. |
Allow shipping buckets | Enable PayPal for orders being dispatched to multiple addresses or in multiple shipments. |
Digital goods | If enabled, the customer can buy Digital Gift Certificate. |
PayPal Logo URL | URL of the PayPal logo, which is shown under PayPal payment methods. |
Transfer Order Details | Specifies the way to transfer order details to PayPal. Order details include items (prices and quantities), discounts, taxes, handling fees, etc. |
PayPal confirmation button type | Modifies the text value of the PayPal confirmation button. |
The PayPal Service Connector provides English and German localization for payment-specific input field labels, error messages, etc.
You can find the existing localization files here: <IS.INSTANCE.SHARE>/system/cartridges/ac_payment_paypal/release/localizations
For details about localization, see:
The PayPal Service Connector adds the following payment methods to your Intershop CM system:
Name | Description | Payment Management Options |
---|---|---|
PayPal Standard | Payment via a PayPal account performing the complete authorization/capturing process | Capture, Cancel, Reduce, Refund |
PayPal Express | Payment via a PayPal account using the express checkout button and performing the complete authorization/capturing process Note The express checkout feature is not available for the Intershop PWA. | Capture, Cancel, Reduce, Refund |
Operation | Description |
---|---|
Capture | Request for settling the payment, can be submitted via the Intershop Commerce Management or via the PayPal Web interface. |
Cancel | Request for abandoning (PayPal: voiding) a payment settlement, can be submitted via the Intershop Commerce Management or via the PayPal Web interface. |
Reduce | Option to lower the capture amount |
Refund | Option to return (parts of) the capture amount |
Note
Capture and Cancel operations performed directly in the PayPal Web interface are not synchronized with Intershop Commerce Management. This leads to errors when trying to capture or to cancel those payments in the Intershop Commerce Management.
The PayPal Connector supports different options for transmitting order details to PayPal. To avoid rounding errors it might make sense to adapt this setting within a project in order to make it possible to use PayPal for all use cases.
Rounding errors may occur when transferring the basket to a payment service provider (PSP). When a PSP provides an API to send the different basket totals with 2-digit values (e.g., shipping, taxes, discounts etc.) there is a possibility that summing up everything with 5-digit values will produce a different result than the total amount for authorization. The difference might be as small as a cent, but still enough for the PSP to reject the payment. The reason for rounding issues is price calculation which includes percentage values. For example:
Since version 4.1 of the PayPal Connector the shop manager has three options to transfer order details (basket transmission) to PayPal.
ICM Option | Possible Rounding Issues | Explanation | Result at PayPal |
---|---|---|---|
No Details | no | No details besides the order total appear at PayPal | |
All Details as Subtotal | no | The connector uses parts of the PayPal API. Order details appear at PayPal as part of the item list. | |
Details Separated | yes | The connector uses most of the PayPal API. Order details appear at PayPal at dedicated places. |
Once the customer is redirected back from PayPal, the contents of the basket are stored as hash. If significant changes are observed before the order is completed, the customer would be redirected again to PayPal to confirm the payment. Such redirects may occur on the payment and review pages of the checkout process.
Significant changes are:
Product quantity change
Adding a product
Removing a product
Changing the whole or parts of the shipping address:
Country
City
Postal code
Address Line 1
Significant changes are not:
Shipping method change
Invoice address changes
Tax Changes
It is possible (although very rarely) that the customer is redirected for a second time to PayPal, not influenced by the customer's actions. This may be observed for example if a tax is applied to a product in the ICM storefront, but the tax is later changed due to an address change when redirecting back from PayPal. This causes a change of the total amount of the basket, which is considered a significant change and the customer will be redirected again to PayPal to confirm the payment.
The following table describes transmitted data by the PayPal Service Connector from ICM to PayPal during the payment process:
Description | PayPal Payment Methods | ||
---|---|---|---|
PayPal Standard | PayPal Express | ||
Amount | The amount for the transaction | ||
Currency | Currency code e.g. EUR/USD | ||
Customer details | Customer e-mail, customer first name, last name, country, city, postal code, mobile number | ||
Shipping Details | Shipping amount, shipping discount | ||
Reference (order id) | Order reference generated by merchant | ||
Address details (street, zip, city, country) | Invoice and shipping address details provided by the user | ||
Description of the items | Product description (optional and configurable in back office) |
Symbol | Description |
---|---|
Transmitted | |
Not Transmitted | |
Optional |
Please be aware that the PayPal payment cartridge requires a matching price display and tax calculation. That is, the price type and the price display must be either both set to "gross" or both set to "net", and a corresponding taxation service must be enabled.
A customer being logged in will be redirected to the payment page (not the review page) after confirming payment at PayPal.
However, this does not affect the functionality of the cartridge.
The payment methods are available for B2C shops and for those B2B shops in which the order approval is disabled.
The express checkout feature is not available for the PWA storefront. The option for express checkout using PayPal will not be available to the user in that case.
It is possible to enable both "Allow PayPal address update" and "Allow shipping buckets" at the same time. However, if multiple shipping addresses are used for some line items of a basket, it will not be possible to distinguish between those addresses at PayPal. Only one address is set on the PayPal redirect page, which would lead to the different shipping addresses being overwritten with this single address when returning from the PayPal redirect. Therefore, in case of orders with multiple shipping buckets, the address update setting will be disabled at runtime, regardless of the configuration.
Due to a bug in the PWA 3.2 the redirect is not working in combination with that release. The issue is fixed since version 3.3.
The IP zones feature requires an IPv4 address on the customer's side. In case the customer has an IPv6 address, the payment method Credit Card will not be displayed on the payment page.
Added localization keys for PayPal Standard- and PayPal Express-specific payment history entries
Improved handling of PayPal-specific errors within capture functionality
Fixed issue blocking usage of multiple configurations for same service on the same level
Fixed bug where payment transaction information could not be sent for products with missing product name
Fixed address update handling in case of multiple shipping buckets
Sensitive banking data are not logged in log files anymore
Fixed determination of fallback total amount to avoid issues when sending order details to PayPal
Support of PayPal Standard within PWA
Upgrade of PayPal Connector to Tomcat-based ICM (≥7.10.31)
Removed dependency to responsive cartridge from PayPal
Improved usage of error log