PayPal WSDL API on Rails anyone?

Hi !

Has anyone connected to the Mass Pay API of PayPal using Rails ? I
need to do this for a customer, and I wanted to know how easy/hard it
was. I have no experience using SOAP, WSDL, etc.

I saw soap4r[1] on the RAA[2]. This is probably what I’ll need to
use. One question I haven’t answered yet is whether soap4r will
accept PayPal’s certificates ?

Thanks for any information on this topic.

Have a nice day !

François Beausoleil
http://blog.teksol.info/

[1] http://raa.ruby-lang.org/project/soap4r/
[2] Ruby Application Archive: http://raa.ruby-lang.org/

Francois B. wrote:

Hi !

Has anyone connected to the Mass Pay API of PayPal using Rails ? I
need to do this for a customer, and I wanted to know how easy/hard it
was. I have no experience using SOAP, WSDL, etc.

I saw soap4r[1] on the RAA[2]. This is probably what I’ll need to
use. One question I haven’t answered yet is whether soap4r will
accept PayPal’s certificates ?

Thanks for any information on this topic.

Have a nice day !

François Beausoleil
http://blog.teksol.info/

[1] http://raa.ruby-lang.org/project/soap4r/
[2] Ruby Application Archive: http://raa.ruby-lang.org/
This is exactly what I’m trying to do. I’m trying to make it so my
Rails program will automatically send money to certain users, without me
having to manually enter anything.

Have you guys had any success? I have my hands full right this
minute, but I can put together an example next week, if that would
help.
Joe

On 12/12/06, Joe P. [email protected] wrote:

accept PayPal’s certificates ?
This is exactly what I’m trying to do. I’m trying to make it so my
Rails program will automatically send money to certain users, without me
having to manually enter anything.


Posted via http://www.ruby-forum.com/.


“For a new software system, the requirements will not be completely
known until after the users have used it.” Humphrey’s Requirements
Uncertainty Principle.

Joe,

Well, I have an example, but it doesn’t work.

I’m putting my notes at
http://www.bodkinconsulting.com/wiki/index.php?title=MassPay#Mass_Pay_-_The_PayPal_Bulk_Payments_Tool

Can you look at this and tell me why this generates NO request xml?

Thanks,
Joe

def send_masspay
massPayReq = MassPayReq.new
massPayRequest = MassPayRequestType.new
massPayReq = massPayRequest
massPayRequest.version = “2.0”

  massPayItems = []
  massPayRequest.massPayItem = massPayItems
  massPayItems[0] = MassPayRequestItemType.new
  massPayItems[0].receiverEmail=params[:receiverEmail1]
  massPayItems[0].amount = AmountType.new(params[:amount1] )
  massPayItems[0].amount.xmlattr_currencyID = 'USD'
  massPayItems[0].note = params[:note1]

  massPayItems[1] = MassPayRequestItemType.new
  massPayItems[1].receiverEmail=params[:receiverEmail2]
  massPayItems[1].amount = AmountType.new(params[:amount2] )
  massPayItems[1].amount.xmlattr_currencyID = 'USD'
  massPayItems[1].note = params[:note2]

  paypalClient = PayPalHttpClient.new.client_setup
  @resp = paypalClient.massPay(massPayReq)

end

On 12/14/06, Joe P. [email protected] wrote:


Posted via http://www.ruby-forum.com/.


“For a new software system, the requirements will not be completely
known until after the users have used it.” Humphrey’s Requirements
Uncertainty Principle.

Bothari wrote:

Have you guys had any success? I have my hands full right this
minute, but I can put together an example next week, if that would
help.
Joe

I’ve had limited success. If you posted an example, that would help out
a lot.