Page MenuHomeDatingVIP

transaction.init
Updated 1,437 Days AgoPublic

transaction.init

Description

Initialize transaction

Input Parameters
NameTypeRequiredDescription
pp_type(string)yesPayment processor type
tracking_order(int)noOrder ID to be tracked on client app.
tracking_user(int)yesUser ID to be tracked on client app.
tracking_tag(int)yesTag ID to be tracked on client app.
first_name(string)noFirst Name
last_name(string)noLast Name
zipcode(string)noUser ZIP code
country(string)noCountry abbr.
email(string)yesUser email address
ip(string)yesIP address from which user is making the transaction
currency(string)yesCurrency abbr.
order_type(string)noAllowed values '' (empty string) and xsale. Determine if order is Cross Sale or not.
initial_order_hash(string)noUse only in case of order_type = 'xsale'. Put hash from transation.init response of initial/basic order
return_url(string)noReturn URL (used for PayPal like PP's)
cancel_url(string)noCancel URL (used for PayPal like PP's)
items(array)yesArray of items
override(int)noUsed for Payment Processor Account Override DEPRECATED
override_tag(int)noUsed for Payment Processor Account Override DEPRECATED
pp_config(array)noMerchand data params to override

items

NameTypeRequiredDescription
trial_amountfloatnoTrial Amount
trial_unitstring (day|week|month|year)noTrial unit
trial_periodintnoTrial period
amountfloatyesrebill amount
rebill_unitstring (day|week|month|year)yesrebill unit
rebill_periodintyesrebill period
max_rebill_countintyesmax rebill count (-1 unlimited)
descriptionstringyesItem description

pp_config

NameTypeRequiredDescription
ppac_idintnoMerchant account id (defined for partner in payment app)
force_accintnoRocket Gate specific, if set it will set appropriate merchantAccount parameter for API call to Rocket Gate
force_midintnoRocket Gate specific, if set it will set appropriate merchantSiteID parameter for API call to Rocket Gate
Return
NameTypeDescription
resultarrayResult array with data
Usage Example

See Quick Start Guide for usage examples
2019-05-20: Support for one-time subscriptions has been added (items with max_rebill_count = 0 and rebill_period > 0)

Last Author
aplawecki
Last Edited
Apr 20 2020, 09:16

Event Timeline

boris moved this document from Unknown Object (Phriction Wiki Document).Mar 11 2015, 13:33
boris changed the visibility from "Public (No Login Required)" to "All Users".
boris changed the visibility from "All Users" to "Public (No Login Required)".
boris shifted this object from the Restricted Space space to the S6 Everyone space.Aug 8 2018, 08:26