Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add couple options on payment

  • Loading branch information...
commit 0f0b5b864e92da6f03da5776ffca8a3e10ba5c24 1 parent b7fe3b0
@sagmor authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/pag_seguro/payment.rb
View
6 lib/pag_seguro/payment.rb
@@ -35,10 +35,14 @@ def to_xml(options={})
self.items.each{ |i| i.to_xml(:builder => items) }
end
checkout.reference reference if reference
+ checkout.redirectURL redirect_url if redirect_url
checkout.extraAmount extra_amount if extra_amount
- checkout.maxUses max_uses if max_uses
+ checkout.maxUses max_uses || 1
checkout.maxAge max_age if max_age
end
+ builder.shipping do |shipping|
+ shipping.type 3
+ end
end
def code
Please sign in to comment.
Something went wrong with that request. Please try again.