Hello, I'm wondering if it's possible to do simple selling with this module. I'm trying to sell credits. Users will enter a dollar amount and it will be applied to their account as credit/points. I don't need a cart just a form where people can enter an amount or a drop down with fix amounts. I noticed the donation module can do this but it is called donation so it doesn't sound right.

I would appreciate any tip on how to implement this. I'm thinking changing the name and the wordings of the donation module will help but not sure of how to go about it.

Comments

fehin’s picture

I used string override to get most of what I need. It will be nice to have another module like donation for general use.

fehin’s picture

I spoke too soon. I tried to deposit money and on Paypal website the button says "Donate $5.00 USD now". Do I get it to say, "pay $5.00 now" or "deposit $5.00 now"?

fehin’s picture

I would greatly appreciate it if anyone can point me to how to change the paypal page the button sends me to. I would like to change it from the donate page to a regular pay now or buy now page. Thank you.

aeris’s picture

Got same issue here... Wish anyone could help... Thx..

fehin’s picture

Change this line in lm_paypal.module from

<?php
function lm_paypal_api_payment_form($form, $form_state, $amount, $options = array(), $type = LM_PAYPAL_FORM_CMD_DONATE)
?>

to

<?php
function lm_paypal_api_payment_form($form, $form_state, $amount, $options = array(), $type = LM_PAYPAL_FORM_CMD_BUY_NOW)
?>

And you should be able to use paypal donations module to sell items.

aeris’s picture

Thx... I've done that and change the item_name in lm_paypal.module that by default was 'Donation'. That's makes me frustated because when I proceed to paypal.com, the order summary was 'Donation'. So i thought that this is still donation, not payment.

Anyway, I want to ask How can I save the ipn detail to my another table. Example, i want to get the amount, email and date, and save it to my table. Thx for reply.

fehin’s picture

Buy now shouldn't say donation on PayPal.com. I'm not sure why you are still seeing that. On your website, you may need to use string override module to change the text from Donations module to fit your need.

About creating a different table, you will need to create a module for that. I'm not an expert since I'm still learning myself.

aeris’s picture

Can i just find where the lm paypal module save the ipn to the database and i override db_insert or drupal_write_record to my table?

jordanmagnuson’s picture

Issue summary: View changes

Same issue as aeris... I've changed the button type to LM_PAYPAL_FORM_CMD_BUY_NOW and cleared caches, but on the PayPal website it still shows as 'Donation'.

See screenshot: http://i.imgur.com/Sh9gp6B.png

jordanmagnuson’s picture

Ah, okay... just realized that I needed to set the $options['item_name'] variable to change the *name* of the item when going to PayPal.