当前位置: 首页 > 软件库 > 程序开发 > 常用工具包 >

Adaptivepayments-sdk-ruby

付款 SDK
授权协议 SDK
开发语言 Ruby
所属分类 程序开发、 常用工具包
软件类型 开源软件
地区 不详
投 递 者 温亮
操作系统 跨平台
开源组织 PayPal
适用人群 未知
 软件概览

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
end

 

  • 注意:以下内容自身的项目为uniapp编译生成微信小程序。小程序内嵌webview。 一、微信初始化 安装微信sdk npm install weixin-js-sdk --save 页面引入 import wx from "weixin-js-sdk"; 微信初始化 wx.config({ debug: false, // 开启调试模式, appId: data.appId,

  • 使用钉钉sdk问题 在和钉钉交互过程中会发现阿里仓库和中央仓库是没有sdk的,于是就会出现Could not find artifact com.dingtalk.open:taobao-sdk-java-auto:pom:0.0.1 in spring-milestones这个错误,这个时候我们只需要把jar包下载到本地,然后在cmd中使用命令 mvn install:install-file

  • 1.实例化链码时报错:failed to get discovery service: could not get chConfig cache reference: QueryBlockConfig failed: no channel peers configured for channel [mychannel] 这是由于fabric-sdk-go的配置文件中通道名与创建通道不一致造成的,将

  • 1、错误描述 VM542:1 thirdScriptError module "pages/index/wx-server-sdk" is not defined; [Component] Event Handler Error @ pages/index/index#bound submitData Error: module "pages/index/wx-server-sdk" is not

 相关资料
  • Adaptivepayments-sdk-php 即 PayPal PHP Adaptive Payments SDK。 使用此开发包的条件是: PHP 5.2 及以上版本 curl/openssl PHP extensions  

  • 我正在使用贝宝/签出-php-sdk,但我不知道创建订单后该做什么。 我可以成功创建订单: 正如你看到的,我把return_url到“/执行命令”, 因此,PayPal在验证后将我重定向到此url: 但我不知道下一步该怎么办。我必须执行付款,但在包的示例中,我只找到createOrder和captureOrder,但没有executeOrder

  • 我使用的是windows应用商店,我使用的是PayPal Windows8 checkout SDK,正常付款可以,但我需要定期付款。让我知道PayPal Windows8 checkout SDK支持定期付款?。 https://github.com/paypal/Windows8SDK

  • AWS SDK for Ruby - Version 3 Links of Interest API Documentation Developer Guide V3 Upgrading Guide AWS Developer Blog Github Discussions Installation The AWS SDK for Ruby is available from RubyGems.

  • 我正在使用PayPal快速结帐,我需要做的是稍后单独授权和捕获付款,我目前的PayPal流程是, 1) 我使用以下代码创建付款: Paypal将订单信息和重定向返回给我,我将用户重定向到

  • EasyWeChat 4.0.7+ 该模块需要用到双向证书,请参考:https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=4_3 企业付款到用户零钱 $app->transfer->toBalance([ 'partner_trade_no' => '1233455', // 商户订单号,需保持唯一性(只能是字母或