Subscription Total Shows $0 During Initial Payment

pinecone89
New Community Member

Hi, I'm testing the subscription api endpoints and I'm creating a subscription request using the data below. When I click on the link and login to paypal and click on the shopping cart icon it says that the Total is $0 in bold at the bottom (see picture). Why does it say $0 when it should say $1?

#Subscription request json
{
"plan_id": "P-2ABCD1234567890",
"start_time": "2019-10-30T00:00:00Z",
"quantity": "1",
"shipping_amount": {
"currency_code": "USD",
"value": "0"
},
"subscriber": {
"name": {
"given_name": "John",
"surname": "Smith"
},
"email_address": "",
"shipping_address": {
"name": {
"full_name": "john smith"
},
"address": {
"address_line_1": "1 Test Street",
"address_line_2": "",
"admin_area_2": "New York",
"admin_area_1": "NY",
"postal_code": "10011",
"country_code": "US"
}
}
},
"application_context": {
"brand_name": "Test",
"locale": "en-US",
"shipping_preference": "NO_SHIPPING",
"user_action": "SUBSCRIBE_NOW",
"payment_method": {
"payer_selected": "PAYPAL",
"payee_preferred": "IMMEDIATE_PAYMENT_REQUIRED"
},
"return_url": "https://test.com",
"cancel_url": "https://test.com"
}
}

#Plan json

{
"id": "P-2ABCD1234567890",
"product_id": "PROD-123456789",
"name": "TEST3",
"description": "Test",
"status": "ACTIVE",
"billing_cycles": [
{
"frequency": {
"interval_unit": "YEAR",
"interval_count": 1
},
"tenure_type": "REGULAR",
"sequence": 1,
"total_cycles": 0,
"pricing_scheme": {
"fixed_price": {
"value": "5",
"currency_code": "USD"
},
"status": "ACTIVE",
"version": 1,
"create_time": "2018-12-10T21:20:49Z",
"update_time": "2018-12-10T21:20:49Z"
}
}
],
"payment_preferences": {
"auto_bill_outstanding": true,
"setup_fee": {
"value": "0",
"currency_code": "USD"
},
"setup_fee_failure_action": "CONTINUE",
"payment_failure_threshold": 3
},
"taxes": {
"percentage": "0",
"inclusive": false
},
"create_time": "2018-12-10T21:20:49Z",
"update_time": "2018-12-10T21:20:49Z",
}

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.