Skip to content

Commit 56d9cff

Browse files
committed
chore: enhance customer payments request
1 parent c07d019 commit 56d9cff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-components/src/reducers/CustomerReducer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ interface GetCustomerPaymentsParams extends GetCustomerOrdersProps<Order> {}
435435
export async function getCustomerPayments({
436436
config,
437437
dispatch,
438-
pageSize = 10,
438+
pageSize = 25,
439439
pageNumber = 1
440440
}: GetCustomerPaymentsParams): Promise<void> {
441441
if (config?.accessToken != null && dispatch != null) {
@@ -444,6 +444,7 @@ export async function getCustomerPayments({
444444
if (owner?.id) {
445445
const payments = await sdk.customer_payment_sources.list({
446446
include: ['payment_source'],
447+
sort: { updated_at: 'desc' },
447448
pageNumber,
448449
pageSize
449450
})

0 commit comments

Comments
 (0)