getStoredPaymentDetails()

StoredPaymentDetails getStoredPaymentDetails(string usn, string storedPaymentDetailsId)

This method returns the stored payment details for a given account and payment detail ID.

Parameters

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

Results

This method returns a StoredPaymentDetails 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 StoredPaymentDetails XML document

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

<StoredPaymentDetails xmlns="http://xml.inomial.com/smile/2.xsd" xmlns="http://ws.inomial.com/smile.2">
  <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>

Faults

NoSuchItemException

This fault is returned when an account or stored payment details for the USN or stored payment details ID does not exist.

InvalidRequestException

This fault is returned when the USN and stored payment details ID do not correspond.

Java client syntax

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