# Payment Intent: "pi_XXXXX" Payment Method: "pm_XXXXX" You can use some simple string matching function to handle that