PHPackages                             verifone/core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. verifone/core

ActiveLibrary[Payment Processing](/categories/payments)

verifone/core
=============

1.2.0(3y ago)110.2k31PHPPHP &gt;=7.1.0CI failing

Since Feb 23Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/Verifone-NB/verifone-core)[ Packagist](https://packagist.org/packages/verifone/core)[ RSS](/packages/verifone-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (18)Used By (1)

Verifone BlueCommerce Payment Gateway Implementation
====================================================

[](#verifone-bluecommerce-payment-gateway-implementation)

This repository contains implementation for Verifone BlueCommerce Payment Gateway used in Nordics. Not compatible with the Verifone Global eCommerce Gateway ()

Table of Contents
-----------------

[](#table-of-contents)

- [1. Installation](#1-installation)
- [2. Basic information](#2-basic-information)
    - [2.1 Contact](#21-contact)
    - [2.2 Configuration - Development mode](#22-configuration---development-mode)
    - [2.3 Configuration - Production mode](#23-configuration---production-mode)
    - [2.4 Delayed URL](#24-delayed-url)
- [3. Usage](#3-usage)
    - [3.1 Fetch available payment methods](#31-fetch-available-payment-methods)
        - [3.1.1 Code example:](#311-code-example-)
    - [3.2 Generate RSA keys](#32-generate-rsa-keys)
        - [3.2.1 Code example](#321-code-example)
    - [3.3 Make payment request](#33-make-payment-request)
        - [3.3.1 Code example](#331-code-example)
    - [3.4 Parse payment response](#34-parse-payment-response)
        - [3.4.1 Code example](#341-code-example)
    - [3.5 Check payment status](#35-check-payment-status)
        - [3.5.1 Code example](#351-code-example)
    - [3.6 Make refund request](#36-make-refund-request)
        - [3.6.1 Code example](#361-code-example)
    - [3.7 Credit Cards](#37-credit-cards)
        - [3.7.1 Add a new card - code example](#371-add-a-new-card---code-example)
        - [3.7.2 Fetch available payment cards - code example](#372-fetch-available-payment-cards---code-example)
        - [3.7.3 Remove payment card - code example](#373-remove-payment-card---code-example)
- [4 Notes](#4-notes)
    - [4.1 Payment Methods](#41-payment-methods)
    - [4.2 Currency](#42-currency)
    - [4.3 Language](#43-language)
    - [4.4 Country](#44-country)

1. Installation
---------------

[](#1-installation)

```
composer require verifone/core
```

2. Basic information
--------------------

[](#2-basic-information)

### 2.1 Contact

[](#21-contact)

If you want to contact support or customer service, please send an email to:

### 2.2 Configuration - Development mode

[](#22-configuration---development-mode)

Library provides functionality for development mode.

For development mode, you have to use a configuration like the below:

**Configuration****Value**Merchant id`demo-merchant-agreement`Hosted interface URL`https://epayment.test.point.fi/pw/payment`Server interface URL`https://epayment.test.point.fi/pw/serverinterface`Library provides test keys:

- private key for the shop available in the `Verifone/Core/Tests/Integration/Assets/demo-merchant-agreement-private.pem`
- public key for the payment service available in the `Verifone/Core/Tests/Integration/Assets/point-e-commerce-test-public-key.pem`

**If you want to use development mode, you have to contact the customer service because our IT department must add the IP to the allowed list**

### 2.3 Configuration - Production mode

[](#23-configuration---production-mode)

For production mode, you have to add a possibility to generate a new key pair and provide the public key into the payment service. Code example for generating a new pair is available here: [3.2 Generate RSA keys](#32-generate-rsa-keys)

Verifone public key could be found from TCS Client portal by the merchant.

For production mode, you have to use a configuration like in the example below:

**Configuration****Value**Merchant id`EC970xxxx`Hosted interface URL`https://epayment1.point.fi/pw/payment` and `https://epayment2.point.fi/pw/payment`Server interface URL`https://epayment1.point.fi/pw/serverinterface` and `https://epayment2.point.fi/pw/serverinterface `Merchant id could be found from TCS Client by the merchant.

### 2.4 Delayed URL / S2S Callback

[](#24-delayed-url--s2s-callback)

Verifone Service sends a request on the URL with information about the transaction. When the response code is different from 200, Verifone Service will repeat the request 24h since the original request.

Merchant has to provide that delayed URL into Verifone’s TCS Client, so must have a possibility to get that URL from the module.

3. Usage
--------

[](#3-usage)

That library has integration and unit tests. If you want, you could find more information about implementation examples there.

### 3.1 Fetch available payment methods

[](#31-fetch-available-payment-methods)

Each merchant has its own payment methods. To fetch all available payment methods, you have to use `GetAvailablePaymentMethodsService`.

After fetch payment methods, you should store them in the system.

#### 3.1.1 Code example:

[](#311-code-example)

```
