"012345".gsub(/\d+/) { |num| num.to_i+1 } #=> "123456" ドキュメントに完璧なサンプルがある。 IPNの送り元確認もやってくれる http://rubydoc.info/github/Shopify/active_merchant/master/ActiveMerchant/Billing/Integrations/Paypal/Notification ActiveMerchantでPaypalのExpressCheckoutをするには下記URLが参考になる Twiwt:Blog / jugyo : Rails3 + Mongoid + ActiveMerchant で Paypal Express Checkout よくみるページ Class: ActiveMerchant::Billing::Integrations::Paypal
![旧toyoshiの日記](https://cdn-ak-scissors.b.st-hatena.com/image/square/06a15c64ba0ceec233d86d71001ebb29a9dcbf5d/height=288;version=1;width=512/https%3A%2F%2Fcdn.blog.st-hatena.com%2Fimages%2Ftheme%2Fog-image-1500.png)