POST v1/Fundraising/Checkout/GPay

Completes fundraising checkout using GPay.

Request Information

URI Parameters

None.

Body Parameters

fundraisingGPayInput
NameDescriptionTypeAdditional information
productId

integer

Required

amount

decimal number

Required

cardNumber

string

Required

CCPartial

string

None.

saveForFutureUse

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "productId": 1,
  "amount": 2.0,
  "cardNumber": "sample string 3",
  "CCPartial": "sample string 4",
  "saveForFutureUse": true
}

text/html

Sample:
{"productId":1,"amount":2.0,"cardNumber":"sample string 3","CCPartial":"sample string 4","saveForFutureUse":true}

application/xml, text/xml

Sample:
<v1_ShoppingCarts_ShoppingCartEndpointController.fundraisingGPayInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_ShoppingCarts_ShoppingCartEndpoint">
  <CCPartial>sample string 4</CCPartial>
  <amount>2</amount>
  <cardNumber>sample string 3</cardNumber>
  <productId>1</productId>
  <saveForFutureUse>true</saveForFutureUse>
</v1_ShoppingCarts_ShoppingCartEndpointController.fundraisingGPayInput>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'fundraisingGPayInput'.

Response Information

Resource Description

fundraisingGPayOutput
NameDescriptionTypeAdditional information
id

The ID of created order

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1
}

text/html

Sample:
{"id":1}

application/xml, text/xml

Sample:
<v1_ShoppingCarts_ShoppingCartEndpointController.fundraisingGPayOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_ShoppingCarts_ShoppingCartEndpoint">
  <id>1</id>
</v1_ShoppingCarts_ShoppingCartEndpointController.fundraisingGPayOutput>