We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c07d019 commit 56d9cffCopy full SHA for 56d9cff
packages/react-components/src/reducers/CustomerReducer.ts
@@ -435,7 +435,7 @@ interface GetCustomerPaymentsParams extends GetCustomerOrdersProps<Order> {}
435
export async function getCustomerPayments({
436
config,
437
dispatch,
438
- pageSize = 10,
+ pageSize = 25,
439
pageNumber = 1
440
}: GetCustomerPaymentsParams): Promise<void> {
441
if (config?.accessToken != null && dispatch != null) {
@@ -444,6 +444,7 @@ export async function getCustomerPayments({
444
if (owner?.id) {
445
const payments = await sdk.customer_payment_sources.list({
446
include: ['payment_source'],
447
+ sort: { updated_at: 'desc' },
448
pageNumber,
449
pageSize
450
})
0 commit comments