question

aripa avatar image
aripa asked David Marginian commented

Create a payment with custom 'attributes'

I've created a payment with custom 'attributes'. When I use the rest api to retrieve the payment it doesn't have 'attributes'. In the request parameter I use expand=paymentAttributes

PaymentsREST API
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian answered

Can you explain how you are creating the payment?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

aripa avatar image
aripa answered David Marginian commented

using Clover Android SDK

3 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

What specific API are you using?

0 Likes 0 ·
aripa avatar image aripa David Marginian ♦♦ ·

Sorry

Let me explain more detailed

In order to create payment we use 'remote-pay-android'

and request looks like this:

val saleRequest = SaleRequest(amount, getNextId())
saleRequest.signatureEntryLocation = DataEntryLocation.NONE
saleRequest.cardNotPresent = true
saleRequest.externalReferenceId = saleRequest.externalId
saleRequest.extras = extras
....
cloverConnector.sale(saleRequest)


In oreder to get payment on the server side we use this API:

https://docs.clover.com/reference/paygetpayment


and I expect my 'extras' params in the payment

but unfortunatly I can't get my 'extras' in the payment

0 Likes 0 ·
AFAIK extras are pass-through values for the gateway, they aren't stored in Clover. I don't quite understand your use case. If you just need to store something associated with the payment, that doesn't need to be stored in Clover. Map the extra values to your payment id and store them in your POS.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community