php - only Show content after paypal payment successful -


i'm not php guy :(

i hope me this.

i have created paypal buy button , have set advance redirect websiteurl/cancel if payment failed, , set redirect websiteurl/success, , want show content of websiteurl/success if payment successful , if sends websiteurl/success link user content not shown or maybe note posted please purchase our product download..

what codes need have on websiteurl/success page show downloadable content if payment made , not show user didn't made content,, have seen paypal digital goods setup complicated me..:(

for example websiteurl/success page contains 2 div

<div id="download"> thank purchase... <a href="filelocationurl" class="button">download now!</a> </div>  <div id="notpaid">please purchase our product download</div> 

god bless

you can either use 3rd party shopping cart set handle digital goods. list of digital goods shopping carts can found here.

another option set return url have buyer redirected after making purchase. example, if selling 1 item can create buy button account. when creating button, on 3rd step of button creation process have option set url have buyer returned after completing successful payment, redirected page , can have item available on page download. buy button allow buyer buy 1 item @ time. if use add cart button, method not work use 1 of return url's try set. use pdt , set return page check see ordered , display correct links items on return page.

another option use ipn. instant payment notification (ipn) allows automate aspects of business posting transaction details server whenever receive paypal payment or whenever status change occurs on transaction. create script sent customer email either link can download item at, or send item them attachment. need create custom ipn script this, or have web developer create script you. if familiar programming can find more out ipn here.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -