Feat/gift card purchase #2582
Ticket(s) / Related Merge Requests
Summary of Changes
Added new mutation to create a new Gift Card
Testing Considerations
Mutation used to test functionality with cash payment type:
mutation completeMyOnboarding(
$productID: Int!,
$amount: Float!,
$stripePaymentMethodId: String!,
$targetInput: GiftCardTargetInput!
)
{
createGiftCard(
productIdEnum: $productID,
amount: $amount,
stripePaymentMethodId: $stripePaymentMethodId,
expiresAt: null,
targetInput: $targetInput
)
{
guid
productId
amount
}
}
Variables for mutation above:
{
"productID": 0,
"amount": 1.5,
"stripePaymentMethodId": "", // provide payment method id for the logged in user
"targetInput": {
"targetEmail": "test@email.com" // replace with an email of choice
}
}
To create an gift card with internal payment type exec into feat-gift-card-purchase-e2582-minds-engine-sandbox-797dbb7f82f6
and run the following command:
source /vault/secrets/env && php cli.php GiftCards createTestCard --user_guid=<issuer_user_guid> --payment_type=2 --recipient_email=<recipient_email>
Deployment Considerations
Regression Scope
Platform Affected (web, mobile, etc)
Developer Testing Completed
Screenshots / Screen Recording
Does this impact
-
Localization -
Dark/light mode -
Guest mode
Definition of Done Checklist
-
The Acceptance Criteria has been met -
Code is tested: Testing includes unit/spec, E2E/automated and manual testing -
Merge requests description has been filled out
Edited by Fausto Arcidiacono