Support » Plugin: GiveWP - Donation Plugin and Fundraising Platform » Workflow for Payment recording

  • Resolved rantsh

    (@rantsh)


    Hi,

    I’m developing a plugin for a local gateway (First Atlantic Commerce), we got a copy of the stripe plugin and I’m trying to adopt it, so far I’ve completed the integration with my gateway so the charge is made to the card and everything, however I can’t seem to get to register the payment correctly. For reference, our bank enforces us to use 3D Secure transactions, so I need to register the payment upon credit card authorization and then mark it as completed once I can capture the transaction.

    So after the customer enters the information on the form I create the payment with “give_insert_payment( $payment_data );” then I save the payment ID in a session variable to be used when their API posts the response. Once I receive the response and capture the amount I try to complete the payment with “give_update_payment_status( $payment_id, ‘publish’ );” but this doesn’t seem to be doing the trick, I’m trying to reverse engineer this and compare the records in the DB with some that were created with the “manual” gateway, here some details:

    I see the “give_payment” record created in the wp_posts, it looks generally the same as the any other give_payment record.

    I see the “give_payment_note” in the wp_comments table, looks OK too

    I don’t see anything being created in the wp_give_customers table with my plugin

    In wp_postmeta I see the following entries created for the post: _give_payment_customer_id
    _give_payment_user_ip
    _give_payment_purchase_key
    _give_payment_total
    _give_completed_date
    _give_payment_meta

    which is missing a lot of the fields from the records created with the “manual” gateway, also, _give_payment_total is 0. And even if I manually add the rest of the meta data I don’t see the “Total donated” change in anyway on the page, a clear indication that I’m missing something.

    Any assistance that you can provide will be greatly appreciated,

    Thanks in advance,

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Workflow for Payment recording’ is closed to new replies.