Ruby-PayPal PayPal的Ruby API

程序名称:Ruby-PayPal

授权协议: MIT

操作系统: 跨平台

开发语言: Ruby

Ruby-PayPal 介绍

Ruby-PayPal 是 PayPal API 的 Ruby 语言封装版本。

安装方法:gem install ruby-paypal

示例代码:

username = <PayPal API username>  
password = <PayPal API password>  
signature = <PayPal API signature>

ipaddress = '192.168.1.1' # can be any IP address  
amount = '100.00' # amount paid  
card_type = 'VISA' # can be Visa, Mastercard, Amex etc  
card_no = '4512345678901234' # credit card number  
exp_date = '022010' # expiry date of the credit card  
first_name = 'Sau Sheong'  
last_name = 'Chang'

paypal = Paypal.new(username, password, signature) # uses the PayPal sandbox  
response = paypal.do_direct_payment_sale(ipaddress, amount, card_type,  
                           card_no, exp_date, first_name, last_name)  
if response.ack == 'Success' then  
     # do your thing  
end

Ruby-PayPal 官网

http://rubyforge.org/projects/ruby-paypal/

相关编程语言

BlazeDS 是一个基于服务器的Java 远程控制(remoting...
OVal 是一个可扩展的Java对象数据验证框架,验证的规...
Volta 是一套开发工具,专为开发分布式、实时系统应...
OpenDDS 是一个开源的 C++ 实现的 对象管理组织 OMG...
JADE (Java Agent DEvelopment Framework) 是一个完...
FastMM ,在D2006和2007中已代替了原来的内存管理器。