简体   繁体   中英

Setting business name and header images with adaptive payments on paypal

In order to ensure consistent experience i want to set header image and business on paypal's page, view items with their names and description and ask the customer to select shipping address.

I'm using active_paypal_adaptive_payment gem ( https://github.com/jpablobr/active_paypal_adaptive_payment ) and the option to set_payment_options:

response = ADAPTIVE_GATEWAY.setup_purchase(
  :action_type => 'CREATE',
  :receiver_list => recipients,
  ...
)

ADAPTIVE_GATEWAY.set_payment_options(
  :display_options => {
    :business_name => 'Big Business',
    :header_image_url => 'url goes here'
  },
  :sender_options => {
    :require_shipping_address_selection => true },
  :receiver_options => [{
    :description => _description,
    :invoice_data => {
      :item => [{ 
        :name => _title, 
        :item_count => 1, 
      }],
      :total_shipping => 10.0,
      :total_tax => 10
    },
    :receiver => { 
      :email => email 
    }
  }])
)

The issue is that it doesn't work - i do not see any business names or image, i see generic names on the left column (the one with the items and the flow doesn't ask for shipping address).

贝宝通用消息无项目详细信息

Could you please advise?

您也可以这样做,方法是登录PayPal,然后转到“我的销售工具”并更新“ 自定义付款页面”选项,以使用您选择的颜色组合和徽标创建新的页面样式(徽标图像有尺寸限制)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM