Help understanding the Paypal API workflow

Manish Goyal

Manish Goyal

@manish-r2Hoep Oct 27, 2024
I have developed a freelancing website, where client can pay through paypal

but I am confused how to check client has paid for which job?

System is redirecting user to paypal interface where he pays and returns back, now to store payment transaction information I have implemented IPN

but How would i know client has paid for which job

for eg If I have following database schema for transaction

id, user_id, job_id, trans_id

How would I get job_id while saving transaction id?

is there any concept of custom fields?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Anand Tamariya

    Anand Tamariya

    @anand-tamariya-DnfjEX Nov 22, 2013

    You don't need a custom field. Map the job_id to corresponding order_id field from paypal.
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Nov 22, 2013

    no anand, actually I have already found the solution

    There is a custom parameter that you can pass to paypal while user checkout through paypal, On successful, payment, paypal will pass those custom parameters value through IPN notification