I am running an audio processing service in which users upload their raw audio tracks and then purchase them after completion. After purchase, I would like an email to be sent to them a unique Dropbox link to download the respective files.
Given that each transaction on my website will contain different pricing information and will require a unique link, I do not know what to do.
Currently, I allow the users to select (via checkboxes) the files they would like to purchase. I then use some server-side logic to calculate the appropriate price, and then run it through a PayPal Express Checkout button.
payment: function(data, actions) {
return actions.payment.create({
payment: {
transactions: [{
amount: { total: "<?php echo $totalPrice ?>", currency: 'USD' }
}]
}
});
},
The problem is that I have no way to manually send them their unique download links after purchase. Is this possible with PayPal IPN? Thank you