Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add couple options on payment

  • Loading branch information...
commit 0f0b5b864e92da6f03da5776ffca8a3e10ba5c24 1 parent b7fe3b0
Seba Gamboa authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 lib/pag_seguro/payment.rb
6 lib/pag_seguro/payment.rb
@@ -35,10 +35,14 @@ def to_xml(options={})
35 35 self.items.each{ |i| i.to_xml(:builder => items) }
36 36 end
37 37 checkout.reference reference if reference
  38 + checkout.redirectURL redirect_url if redirect_url
38 39 checkout.extraAmount extra_amount if extra_amount
39   - checkout.maxUses max_uses if max_uses
  40 + checkout.maxUses max_uses || 1
40 41 checkout.maxAge max_age if max_age
41 42 end
  43 + builder.shipping do |shipping|
  44 + shipping.type 3
  45 + end
42 46 end
43 47
44 48 def code

0 comments on commit 0f0b5b8

Please sign in to comment.
Something went wrong with that request. Please try again.