You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/payment-factory.sol
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,12 @@ contract PaymentFactory {
137
137
}
138
138
139
139
140
-
/// @dev Calulates the payament address given the following parameters
140
+
/// @notice Given the parameters used to generate a payement address, this function will forward the payment to the merchant's address.
141
+
/// @param merchant The merchant's address which the funds get sent to
142
+
/// @param proof The address that the receipt or the refund will be sent to
143
+
/// @param amount The amount the customer is paying
144
+
/// @param currency The address of the ERC20 that is being used as payement. If that currency is Ether then use zero address `0x0000000000000000000000000000000000000000`.
145
+
/// @param recieptHash The hash of the receipt
141
146
function processPayment(
142
147
address payablemerchant,
143
148
address payableproof,
@@ -164,6 +169,12 @@ contract PaymentFactory {
164
169
lastPaymentAddress =msg.sender;
165
170
}
166
171
172
+
/// @notice this does a batched call to `processPayment`
173
+
/// @param merchant The merchant's address which the funds get sent to
174
+
/// @param proof The address that the receipt or the refund will be sent to
175
+
/// @param amount The amount the customer is paying
176
+
/// @param currency The address of the ERC20 that is being used as payement. If that currency is Ether then use zero address `0x0000000000000000000000000000000000000000`.
0 commit comments