Update payments using external script

Discussion in 'General Discussion' started by marcel_nz, Feb 11, 2013.

  1. marcel_nz

    marcel_nz Bit Poster


    Is there a way to programmatically mark an order/invoice/document as paid? (i.e. using perl or php code)

    I'm writing a new (PCI compliant) payment gateway module for PBAS, and one of the issues with our payment processor is that there may be (substantial) delays before the payment is processed.
    So my solution was to store all the relevant details in a DB table, and use an external script that periodically checks if a payment has processed. If the payment has successfully processed (or not) I want to be able to make the appropriate adjustments in PBAS.

    How would I do that? Any suggestions?



    (Could've posted this in the customization forum...but nobody seems to read that one)
  2. vbatraev

    vbatraev Odin Team

    Hi Marcel,

    In your [direct] payment plug-in, you should implement process_check_status method that should either call gateway to get a transaction status or check information from your DB table and return its status to PBAS.

    Please refer to PBAS SDK for more information regarding payment plug-ins development.

Share This Page