Skip to content

[Mobile Payments] Create PaymentIntent via WCPay API instead of Stripe SDK #6361

Open
@joshheald

Description

@joshheald

In #6360 we will add a Canada-only workaround for not being able to use WCPay to charge fees for payments.

To remove fee logic from the app, we should move to using the WCPay API to create the PaymentIntent, so that fees can be applied there.

We can use the WCPay /payments/orders/{id}/create_terminal_intent endpoint for this, however it will first need to be updated to accept payment_method_types, metadata, customer and capture_method parameters, and we may also need to create the customer before the payment intent call.

We have the option to release this for Canada only, first, then simplify the apps to use this flow for all IPP transactions regardless of territory.

This is not needed for the initial release of IPP in Canada

See pdfdoF-Gj-p2#comment-1381 for full discussion

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: mobile paymentsRelated to mobile payments / card present payments / Woo Payments.type: taskAn internally driven task.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions