You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stripe Checkout recently added Cash App Pay as an option for recurring payments, however using this with Cashier causes a 500 error for the webhooks customer.updated and customer.subscription.updated with the ErrorException: Attempt to read property "last4" on array. This is coming from the optional($paymentMethod)->$type->last4 code in ManagesPaymentMethods.php.
This happens apparently due to Cash App not providing that last4 attribute, but it is strange because the Link payment method also doesn't have the attribute but works just fine with the same webhooks.
The intended behavior is it should set the pm_type on the User model to cashapp with no error after checkout. Simply fixing this issue with the webhook should allow full support of Cashier with Cash App Pay via Stripe Checkout.
Steps To Reproduce
Use a Stripe Checkout with Cash App Pay for a recurring subscription and the webhooks that follow will trigger the above error.
The text was updated successfully, but these errors were encountered:
Cashier Stripe Version
14.12.0
Laravel Version
9.52.7
PHP Version
PHP 8
Database Driver & Version
MySQL 8
Description
Stripe Checkout recently added Cash App Pay as an option for recurring payments, however using this with Cashier causes a 500 error for the webhooks
customer.updated
andcustomer.subscription.updated
with the ErrorException:Attempt to read property "last4" on array
. This is coming from theoptional($paymentMethod)->$type->last4
code inManagesPaymentMethods.php
.This happens apparently due to Cash App not providing that last4 attribute, but it is strange because the Link payment method also doesn't have the attribute but works just fine with the same webhooks.
The intended behavior is it should set the
pm_type
on the User model tocashapp
with no error after checkout. Simply fixing this issue with the webhook should allow full support of Cashier with Cash App Pay via Stripe Checkout.Steps To Reproduce
Use a Stripe Checkout with Cash App Pay for a recurring subscription and the webhooks that follow will trigger the above error.
The text was updated successfully, but these errors were encountered: