create method
Create data R
along with P
Implementation
@override
Future<PaymentIntentResponse> create(
PaymentIntentAttributes attributes,
) async {
final options = PayMongoOptions(
path: '/payment_intents',
data: {
"attributes": attributes.toMap(),
},
);
final response = await _http.post(options);
final json = serialize<Map<String, dynamic>>(response, options.path);
return PaymentIntentResponse.fromMap(json);
}