woocommerce / woocommerce-paypal-payments

https://wordpress.org/plugins/woocommerce-paypal-payments/
GNU General Public License v2.0
62 stars 47 forks source link

Fastlane empty `single_use_token` causing payment failure (3169) #2258

Closed Dinamiko closed 2 months ago

Dinamiko commented 2 months ago

The single_use_token is sent empty:

POST v2.checkout.orders
{
    ...
    "payment_source": {
        "card": {
            "single_use_token": ""

Also we are passing the wrong object key to fastlanePaymentComponent.getPaymentToken:

tokenizeData() {
        return {
            name: {
                fullName: this.billingView.fullName()
                ...

We should rename name to cardholderName.