- 授权协议: SDK
- 开发语言: Ruby
- 操作系统: 跨平台
- 软件首页: https://github.com/paypal/adaptivepayments-sdk-ruby
软件介绍
Adaptivepayments-sdk-ruby(又称 PayPal Adaptive Payments SDK)正如名字所形容的那样,这是一个 RUBY 编写的自适应支付 SDK(Adaptive Payment SDK )。
PayPal Adaptive Payments SDK 提供了 Ruby APIs 来创建、处理和管理简单和复杂(parallel and chained)支付方式,并且使用 Adaptive Payments API 实现预批准申请。
代码示例:
require 'paypal-sdk-adaptivepayments'
PayPal::SDK.configure(
:mode => "sandbox", # Set "live" for production
:app_id => "APP-80W284485P519543T",
:username => "jb-us-seller_api1.paypal.com",
:password => "WX4WTU3S8MY44S7F",
:signature => "AFcWxV21C7fd0v3bYYYRCpSSRl31A7yDhhsPUU2XhtMoZXsWHFxu-RWy" )
@api = PayPal::SDK::AdaptivePayments.new
# Build request object
@pay = @api.build_pay({
:actionType => "PAY",
:cancelUrl => "http://localhost:3000/samples/adaptive_payments/pay",
:currencyCode => "USD",
:feesPayer => "SENDER",
:ipnNotificationUrl => "http://localhost:3000/samples/adaptive_payments/ipn_notify",
:receiverList => {
:receiver => [{
:amount => 1.0,
:email => "platfo_1255612361_per@gmail.com" }] },
:returnUrl => "http://localhost:3000/samples/adaptive_payments/pay" })
# Make API call & get response
@response = @api.pay(@pay)
# Access response
if @response.success? && @response.payment_exec_status != "ERROR"
@response.payKey
@api.payment_url(@response) # Url to complete payment
else
@response.error[0].message
endHead First HTML and CSS
Elisabeth Robson、Eric Freeman / O'Reilly Media / 2012-9-8 / USD 39.99
Tired of reading HTML books that only make sense after you're an expert? Then it's about time you picked up Head First HTML and really learned HTML. You want to learn HTML so you can finally create th......一起来看看 《Head First HTML and CSS》 这本书的介绍吧!
