getStoredPaymentDetailsList()

StoredPaymentDetailsList getStoredPaymentDetailsList(string usn)

This method returns all stored payment details for a given account.

Parameters

usn
Format: string
Purpose: Specifies the USN of the account of which to retrieve stored payment details.

Results

This method returns a StoredPaymentDetailsList XML document containing the stored payment details. Certain fields may be concealed depending on Smile's configuration.

There are no messages defined by this method.

Example: A returned StoredPaymentDetailsList XML document

This example shows a StoredPaymentDetailsList XML document with the stored payment details for a Visa card. Only a hint for the card number is displayed.

<StoredPaymentDetailsList xmlns="http://xml.inomial.com/smile/2.xsd" xmlns="http://ws.inomial.com/smile.2">
  <StoredPaymentDetails>
    <StoredPaymentDetailsId>4c47d515-8c02-4d1b-a416-1224b6979867</StoredPaymentDetailsId>
    <AccountName Disclosure="Full">Test User</AccountName>
    <AccountNumber Disclosure="Hint">4111  44</AccountNumber>
    <ExpiryDate Disclosure="Full">12/2020</ExpiryDate>
    <PaymentType>
      <PaymentTypeCode>visa</PaymentTypeCode>
      <Name>Visa</Name>
      <Currency>AUD</Currency>
      <Surcharge/>
      <FieldLabels>
        <Name>Card holder</Name>
        <Number>Card number</Number>
        <ExpiryDate>Expiry</ExpiryDate>
      </FieldLabels>
    </PaymentType>
  </StoredPaymentDetails>
</StoredPaymentDetailsList>

Faults

NoSuchItemException

This fault is returned when the account or stored payment details do not exist.

Java client syntax

java -cp build/smilewsv2-client.jar [options] com.inomial.smile.client.v2.examples.GetStoredPaymentDetailsList usn
usn
Purpose: Specifies the USN of the account of which to retrieve stored payment details.
Note: For more information about the Java client and the options it accepts, see Java client syntax.