Page MenuHomeDatingVIP

Overrides
Updated 2,640 Days AgoPublic

Version 4 of 11: You are viewing an older version of this document, as it appeared on Feb 22 2017, 15:17.

Payment Processor Account

Payment Processor which will handle [[public/payment/partners/apidocs/transaction.init/ | transaction.init]] API call is determined based on :

  • ptnr_id value, which is implicitly known from Authentication Credentials for API call
  • pp_type parameter in request

By default, these 2 parameters (ptnr_id and pp_type) further determine Payment Processor Account that will be used for transaction.

Depending on exact Payment Processor additional request parameters could be used to determine appropriate Payment Processor Account:

  • Netbilling additionally uses currency parameter from request (required)
  • PayOn can use currency and bank_country parameters from request (both are optional)
  • PayU can additionally use currency and country parameters from request (both are optional)

Once we have Payment Processor Account determined we know which Payment Processor and which Merchant account account to use on that Payment Processor for Transaction.

Overrides

Overrides allow Partner to use different Payment Processor Account than one which would be determined with default process described above.
Different Payment Processor Account also means that completely different Payment Processor can be used for Transaction (in this case parameter pp_type from public/payment/partners/apidocs/transaction.init/ | transaction.init]] request is overridden as well).

Overrides are activated by passing parameters into [[public/payment/partners/apidocs/transaction.init/ | transaction.init]] API call :

  • override - int, required (for example on #dating this is company_id)
  • override_tag - int, required (for example on #dating this is site_id)
  • override_type - string, optional, recognized values are:
    • '' (empty string, default value) or
    • 'x-sale'
  • currency - required for transaction.init API call
  • ptnr_id - implicitly known from Authentication Credentials for API call.

These parameters are matched against overrides table.
If match is found it will override Payment Processor Account that would be used by default.
Match data from overrides table will give us

  • ppac_id - override for Payment Processor Account (and consequently Payment Processor)
  • force_mid - when used with Rocket Gate it sets appropriate merchantSiteID parameter for API call to Rocket Gate; when used with Netbilling it sets appropriate processor parameter for API call to Netbilling; otherwise not used.
  • force_acc - Rocket Gate specific, if set it will set appropriate merchantAccount parameter for API call to Rocket Gate

Note: if values of both, override and override_tag parameters are empty (0 or '' - empty string), then Overrides mechanism won't be used, and Payment Processor Account will be selected by default (as described in Payment Processor Account section on this page).

Usage in Transaction

Determined Payment Processor Account (ppac_id), along with other overrides parameters ( force_mid, force_acc ) is saved into Order when making [[public/payment/partners/apidocs/transaction.init/ | transaction.init]] API call.
Same Payment Processor Account and overrides parameters are then used for next appropriate [[public/payment/partners/apidocs/transaction.finish/ | transaction.finish]] API call.
This means that Transaction is executed on Payment Processor Account determined with process described above.

Last Author
banovic
Last Edited
Feb 22 2017, 15:17

Event Timeline

banovic moved this document from Unknown Object (Phriction Wiki Document).Feb 17 2017, 12:57
boris changed the visibility from "All Users" to "Public (No Login Required)".Feb 17 2017, 18:36
banovic edited the content of this document. (Show Details)
banovic edited the content of this document. (Show Details)
boris edited the content of this document. (Show Details)
boris shifted this object from the Restricted Space space to the S6 Everyone space.Aug 8 2018, 07:59