getPaymentDetails()


Return user payment details

Parameters:

Name Type Description
publisherToken string You can find your publisher token at api-keys page.
userEmail string Set customer email which you want to get subscription list from.
offerId string Name specific offer id for example S123123123_US

- required parameter

Request:

[
    {
        "method": "getPaymentDetails",
        "params": {
            "publisherToken": "TeurE3xRXcFtF7gSbhYCXx_qC1IrvnDWGejDv114-OE0cdZ9",
            "userEmail": "customer@email.com",
            "offerId": "S123123123_US"
        },
        "jsonrpc": "2.0",
        "id": 1
    }
]

Response:

[
    {
        "result": {
            "lastFourCardDigits": "1234",
            "expirationDate": "2018-03-03 10:10:10",
            "paymentMethod": "Card"
        },
        "id": "1",
        "jsonrpc": "2.0"
    }
]

Remember! you can always check it by yourself using API Console - getPaymentDetails()

Back to Subscription Offers