Discussions

Ask a Question
Back to all

Determining payment method for a Subscription Order (with payments.ai)

Hi,

We're using payments.ai as our gateway for selling subscription products, using Stripe and PayPal. The web interface for viewing the CF2 Order record lists an "Autopay method" which lists the card's last 4 for the Stripe case, and "Miscellaneous"(!) for the PayPal case.

This would be enough to serve our use case, which is just to distinguish between these two possibilities.

However, I can't find any way to access the equivalent information via the API. There doesn't seem to be anything in the Order record or corresponding Transaction record to distinguish between the two, and in the case of a free trial there's not yet any Invoice record (nor any corresponding Charge in Stripe or Transaction in PayPal which we could otherwise use).

Is there any way with the API to determine the payment method for a free trial subscription order? The "Autopay method" in the web interface makes me think the data must exist somewhere in CF2!