Skip to content

Commit

Permalink
PaySimple: Remove hack for NumLeft now that it is fixed in the wsdl
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.roundhaus.com/daikini/plugins/paysimple@27 ca0bbbe9-a109-dc11-9d9d-0016e6374d05
  • Loading branch information
jonathan committed Sep 6, 2007
1 parent 302597d commit a1c6338
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions lib/paysimple.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,7 @@ def delete(customer_number)
# puts "An error occurred: #{e.message}"
# end
def find(customer_number)
customer = PaySimple.send_request(:getCustomer, customer_number)

# NumLeft Bug in SOAP Beta 6
customer["NumLeft"] = Array(customer["NumLeft"]).first
customer
PaySimple.send_request(:getCustomer, customer_number)
end

# # Process one-time sale against existing subscription
Expand Down
3 changes: 2 additions & 1 deletion lib/usaepay.wsdl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>

<!-- USAePay Soap Interface - Beta 6 (RPC) -->
<!-- WSDL file generated painstakingly by hand -->

<definitions name="usaepay" targetNamespace="urn:usaepay" xmlns:typens="urn:usaepay" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
Expand Down Expand Up @@ -725,7 +726,7 @@
<part name="CustNum" type="xsd:integer"/>
<part name="Details" type="typens:TransactionDetail"/>
<part name="Command" type="xsd:string"/>
<part name="PaymenthMethodID" type="xsd:integer"/>
<part name="PaymentMethodID" type="xsd:integer"/>
</message>
<message name="runCustomerTransactionResponse">
<part name="runCustomerTransactionReturn" type="typens:TransactionResponse"/>
Expand Down

0 comments on commit a1c6338

Please sign in to comment.