The portal calls one of the following APIs to process the payment request:.
To processes the payment on the current date, it calls the following
API:
POST /billingAccounts/systemId/paymentRequest
To processes the payment on a scheduled date that is no more than 14 days in the
future, it calls the followings API:
POST /billingAccounts​/systemId​/scheduledPaymentRequest
The body of the API request varies based on the payment method and payment
details. The following examples provide guidance regarding the fields to include in the
body of the request. However, the requirements and content might differ for your
implementation.
Credit Card example
Credit card payment requests generally include the following
fields:
Process to contact payment processor for new credit card account
Based on the payment processor, new credit card payments require some additional steps to
obtain account details before the Service Portal can submit a payment request.
Using Payment Service
Before submitting a payment to a new credit card that uses the Payment Service, the
Service Portal completes the following steps:
The Service Portal uses the Guidewire Payments API to display an iframe that
gathers the credit card information from the policyholder.
The Guidewire Payments API returns an ID to the Service Portal. The Service Portal
uses this ID as the customerPaymentProfileId.
The Service portal generates the customerProfileId.