PayPal Express Checkout is easy to add to an existing ordering system. See how in this episode.
PayPal Express Checkout is easy to add to an existing ordering system. See how in this episode.
require "rubygems" require "active_merchant" ActiveMerchant::Billing::Base.mode = :test gateway = ActiveMerchant::Billing::PaypalGateway.new( :login => "seller_1229899173_biz_api1.railscasts.com", :password => "FXWU58S7KXFC6HBE", :signature => "AGjv6SW.mTiKxtkm6L9DcSUCUgePAUDQ3L-kTdszkPG8mRfjaRZDYtSu" ) credit_card = ActiveMerchant::Billing::CreditCard.new( :type => "visa", :number => "40240071486
def paypal_encrypted(return_url, notify_url) values = { :business => APP_CONFIG[:paypal_email], :cmd => '_cart', :upload => 1, :return => return_url, :invoice => id, :notify_url => notify_url, :cert_id => APP_CONFIG[:paypal_cert_id] } line_items.each_with_index do |item, index| values.merge!({ "amount_#{index+1}" => item.unit_price, "item_name_#{index+1}" => item.product.name, "item_number_#{index
def paypal_url(return_url) values = { :business => 'seller_1229899173_biz@railscasts.com', :cmd => '_cart', :upload => 1, :return => return_url, :invoice => id } line_items.each_with_index do |item, index| values.merge!({ "amount_#{index+1}" => item.unit_price, "item_name_#{index+1}" => item.product.name, "item_number_#{index+1}" => item.id, "quantity_#{index+1}" => item.quantity }) end "https://w
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く