Request Payment Updated on 03-08-2018

Resource URL
https://www.easypay.pt/_s/api_easypay_05AG.php
http://test.easypay.pt/_s/api_easypay_05AG.php

Info

This API call is used to get the payment from client's credit card/bank account.

Updated on 03-08-2018

Parameters
e
required
Reference Entity.
Example value: 10611
r
required
Reference of payment.
Example value: 999907994
v
required
Value to get.
Example value: 15.25
Additional parameters only for MBWAY
mbway
required
Always set this parameter to yes.
Example value: yes
mbway_title
required
Title for payment.
Example value: Movie payment
mbway_type
required
Type of MBWAY operation, must be authorization, capture, purchase, refund or cancel
Example value: authorization
mbway_phone_indicative
required
Mobile indicative.
Example value: 351
mbway_phone
required
Mobile number.
Example value: 911234567
mbway_currency
required
Currency.
Example value: EUR
ep_k1
required
The ep_k1 associated with your payment, only for capture, refund and cancel MBWAY operations.
Example value: EF3C7E6F76E8C20652C100D47EFCEA2F301604382
t_key
required
An identifier of the order corresponding to this operation.
Example value: 3
Additional parameters only for Credit Card single
k
required
The "k" variable you received on client redirect.
Example value: CCCA9DB585706CB435164C2D6A06C3D27AB1ABA
Additional parameters only for Credit Card frequent payments
ep_k1
required
The ep_k1 associated with your client.
Example value: EF3C7E6F76E8C20652C100D47EFCEA2F301604382
freq
required
Always set this parameter to yes.
Example value: yes
ep_key_freq
required
The auto-incremented key on your database.
Example value: 5
request_date
optional
The date when the recurring payment should be processed (YYYY-MM-DD).
Example value: 2012-01-02
Additional parameters only for Direct debit frequent payments
ep_k1
required
The ep_k1 associated with your client.
Example value: EF3C7E6F76E8C20652C100D47EFCEA2F301604382
rec
required
Always set this parameter to yes.
Example value: yes
ep_key_rec
required
The auto-incremented key on your database.
Example value: 5
request_date
optional
The date when the recurring payment should be processed (YYYY-MM-DD).
Example value: 2012-01-02
ep_test
optional
JUST FOR DEVELOPMENT: use this var to test a successful(ok) or unsuccessful(err) payment.
Available values: ok or err
Call
https://www.easypay.pt/_s/api_easypay_05AG.php?e=10611&r=999907994&v=15.25
http://test.easypay.pt/_s/api_easypay_05AG.php?e=10611&r=999907994&v=15.25
Response Example


  ok0
  ip ok
  10611
  999907994
  15.25
  11160

Response Types


  string
  string
  integer
  string
  double
  string

Call
https://www.easypay.pt/_s/api_easypay_05AG.php?e=10611&r=999907994&v=15.25&ep_k1=EF3C7E6F76E8C20652C100D47EFCEA2F301604382&rec=yes&ep_key_rec=5&request_date=2012-01-02&ep_test=ok
http://test.easypay.pt/_s/api_easypay_05AG.php?e=10611&r=999907994&v=15.25&ep_k1=EF3C7E6F76E8C20652C100D47EFCEA2F301604382&rec=yes&ep_key_rec=5&request_date=2012-01-02&ep_test=ok
Response Example


  ok
  recurring payment requested
  10611
  999907994
  15.25
  11160
  EF3C7E6F76E8C20652C100D47EFCEA2F301604382
  PPDOCRECKDHERCSUKDBKUBKUHDKUHKBTNTMHJBDHJ

Response Types


  string
  string
  integer
  string
  double
  string
  string
  string

Call
https://www.easypay.pt/_s/api_easypay_05AG.php?e=10611&r=999907994&v=15.25&mbway=yes&mbway_title=test&mbway_type=authorization&mbway_phone_indicative=351&mbway_phone=911234567&mbway_currency=EUR&t_key=3
Not available
Response Example
                            
                            
                            
                             10611
                             999907994   
                             15.25                                
                             test
                             authoriztion  
                             351                                
                             911234567
                             EUR
                             EF3C7E6F76E8C20652C100D47EFCEA2F30160438
                             3
                             success
                             Operation succeded
                            
                                                    
Response Types
                            
                            
                            
                             integer
                             string   
                             double                                
                             string
                             string  
                             integer                                
                             integer
                             string
                             string
                             string
                             string
                             string