Documentation

Redsys_Pay_One_Clic

Class Redsys Pay One Clic

Table of Contents

Methods

__construct()  : mixed
Contructor.
create_order()  : mixed
Create Order
create_subscription_for_order()  : mixed
Create Subscription For Order
get_billing_address()  : mixed
Get Billing Address
get_shipping_address()  : mixed
Get Shipping Address
process_payment()  : mixed
Process Payment
update_subscription_status()  : mixed
Update Subscription Status

Methods

create_order()

Create Order

public create_order(int $user_id, int $product_id, int $qty[, string $shipping_method = '' ][, string $gateway_id = 'redsys' ]) : mixed
Parameters
$user_id : int

Userd ID.

$product_id : int

Product ID.

$qty : int

Quantity.

$shipping_method : string = ''

Shipping Method.

$gateway_id : string = 'redsys'

Gateway ID.

create_subscription_for_order()

Create Subscription For Order

public create_subscription_for_order(int $order_id, int $product_id, int $user_id[, mixed $initial_status = 'on-hold' ]) : mixed
Parameters
$order_id : int

Order ID.

$product_id : int

Product ID.

$user_id : int

User ID.

$initial_status : mixed = 'on-hold'

get_billing_address()

Get Billing Address

public get_billing_address(int $user_id) : mixed
Parameters
$user_id : int

Userd ID.

get_shipping_address()

Get Shipping Address

public get_shipping_address(int $user_id) : mixed
Parameters
$user_id : int

Userd ID.

process_payment()

Process Payment

public process_payment(int $order_id, string $token) : mixed
Parameters
$order_id : int

Order ID.

$token : string

Token.

update_subscription_status()

Update Subscription Status

public update_subscription_status(int $order_id, string $new_status) : mixed
Parameters
$order_id : int

Order ID.

$new_status : string

New Status.


        
On this page

Search results