pay with a like custom code

Hi,

I need to know the custom function to use within my php page template.

I am using Classipress theme and for posting an ad, I want to use pay with like plugin so people Like first before they can proceed to post an ad.

Kindly advise the php function to put which would handle this issue.

Thanks